ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Marshall" <emi.ericmarsh...@gmail.com>
Subject trouble with dependset under ant v1.7
Date Tue, 24 Jun 2008 19:43:11 GMT
   I have the following dependset declaration
in one of our project's build files:

<dependset>
   <srcfileset     dir="src"                    includes="**/*.java"/>
   <srcfileset     dir="${extern.dep.dir}/dist" includes="**/*.jar"/>

   <targetfilelist dir="dist"
files="${ant.project.name}.jar"/>
</dependset>


with the intention that any newer project source file
or any newer external dependent jar will cause our project's
jar file to be removed.


The problem I'm having under Red Hat Linux 4.4 is
that with "ant -v", ant says that the newest source
file is a Java file from the first srcfileset
definition, although the jar file specified in
the second srcfileset definition is much newer.
The jar file from the second srcfileset definition
is even newer than the project's jar file, so
I was expecting the dependset to remove the project's
jar file, but because ant is misreporting the
date information from the source file set, that's
not happening. Is this a bug in dependset or am
I not understanding the documentation correctly?

   Thanks in advance.

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


Mime
View raw message