You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ck...@onebox.com on 2007/06/05 22:38:22 UTC

Problem with task

Consider this task:

<tidy destdir="${base-dir}/tidy" flatten="true">
  <fileset dir="${base-dir}">
    <include name="**/*.htm"/>
  </fileset>
  <parameter name="wrap" value="0" />
  <parameter name="numeric-entities" value="true" />
</tidy>

The result of this tidies all the .htm files in ${base-dir}/sub1 and places them in in "destdir". It ignores a .htm file in ${base-dir}.


I have elminated the possibility that the problem is in <fileset> by running this experimental target:

  <target name="test">
    <copy todir="${base-dir}/tidy" flatten="true">
      <fileset dir="${base-dir}">
        <include name="**/*.htm"/>
      </fileset>
    </copy>
  </target>

When I run it, the single .htm file in ${base-dir} is moved to ${base-dir}/tidy as well as the .htm files in ${base-dir}/sub1 .

This situation obtains in both ant 1.6.5 and 1.7.0 using jtidy-8.0-20060730.195103-1.jar.

Does anyone else have this experience? And more important, has anyone solved it? Thanks.
-- 
Charles Knell
cknell@onebox.com - email

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org