ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Coté <c...@computer.org>
Subject [PATCH] for bug 11214 : Make the uptodate task ignore a inexisting fileset
Date Mon, 29 Jul 2002 09:00:23 GMT
Hi,

I want to change the behavior of the UpToDate task when it's called on a 
inexisting fileset.  Now, it throws a exception like that one :

file:/home/gce/dev/bilansService/build/build.xml:419:
/home/gce/dev/bilansService/work/src not found.
         at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:341)
         at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:332)
         at org.apache.tools.ant.taskdefs.UpToDate.eval(UpToDate.java:199)
         at 
org.apache.tools.ant.taskdefs.UpToDate.execute(UpToDate.java:235)
         at org.apache.tools.ant.Task.perform(Task.java:317)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:334)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
         at org.apache.tools.ant.Main.runBuild(Main.java:610)
         at org.apache.tools.ant.Main.start(Main.java:196)
         at org.apache.tools.ant.Main.main(Main.java:235)

I would like the uptodate tasks to simply ignore inexisting directory 
and consider that the file can not uptodate.

Please see bug 11214 for more details :

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11214

Thanks

--
Guillaume Coté
cote@computer.org

Mime
View raw message