ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marina <>
Subject outofdate task returns TRUE if no target files exist??
Date Tue, 20 Jul 2010 19:35:00 GMT
Hi, I wanted to see if the behavior I see when using the ant-contrib's 
'outofdate' task is a correct one. Basically, I'm trying to determine if 
generated EAR archive (in the exploded form) has any out of date files in 
respect to the source directories, and re-copy those files if so.
Here is my task:
      <target name="check.ear.exploded.uptodate" >
        <outofdate property="ear.not.uptodate">
                  <fileset dir="${build.jars}"
                  <fileset dir="${build.wars}"
                  <fileset dir="${basedir}/rsrc/deployment"
                <fileset dir="${destination}/myapp.ear" includes="**/*"/>
                <echo message="exploded myapp.ear dir is not uptodate - 

Now, if there are no files in the "${destination}/myapp.ear" directory yet (I'm 
building for the first time after cleanup) - the outofdate task still returns 
TRUE. Needless to say, I would prefer the opposite behavior - if no target files 
exist - consider them out-of-date.
Is this the expected behavior or am I missing something?
Also, I hope this is the right forum to post this question to; if not - please 
let me know.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message