ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Use Ant <modified> with an arbitrary date
Date Thu, 08 Dec 2011 11:58:41 GMT
On 2011-12-08, Emma Burrows wrote:

> Apologies for revisiting this issue a week later.

Don't worry.

>> Another approach more in line with your original one is to explicitly
>> set update to false on your modified selector during normal builds and
>> set it to true when you actually deploy the files.

> I don't seem to be able to get this to work. I am using Ant 1.7.1. and
> I have the following code:

> <copy todir="\content\Test\" includeEmptyDirs="false" failonerror="no">
>   <fileset dir="../Output">
>     <modified update="false" />
>   </fileset>
> </copy>

Ant 1.7.1 has a known bug

<https://issues.apache.org/bugzilla/show_bug.cgi?id=32597>

If you can't upgrade Ant, this should work

<copy todir="\content\Test\" includeEmptyDirs="false" failonerror="no">
  <fileset dir="../Output">
    <modified>
      <param name="update" value="false"/>
    </modified>
  </fileset>
</copy>

Stefan

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


Mime
View raw message