ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ckn...@onebox.com
Subject Problem with <tidy> task
Date Tue, 05 Jun 2007 20:38:22 GMT
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


Mime
View raw message