ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
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"/>
  <parameter name="wrap" value="0" />
  <parameter name="numeric-entities" value="true" />

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 name="test">
    <copy todir="${base-dir}/tidy" flatten="true">
      <fileset dir="${base-dir}">
        <include name="**/*.htm"/>

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 - email

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message