ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nafter <>
Subject Ant copy file error: Only one of tofile and todir may be set
Date Thu, 07 May 2009 09:52:25 GMT

I'm using maven with included ANT tasks to copy files.
However I receive the following error. 
In an other step during the maven build process I use ant copy as well in
which I have to set the toDir.
But this step is not using the todir at all. But it seems it complains about
the fact that now both the tofile and todir are set.

does anybody know a solution.


[INFO] Executing tasks

     [echo] Copy version.txt template to _work directory...

     [copy] Copying 1 file to c:\_composer\_work

     [echo] Edit version.txt to reflect current build id...

     [echo] Overwrite new version.txt in pvmeta kernel directories...

     [copy] Copying 1 file to c:\_composer\_composer5\PVMeta\pv50

     [copy] Copying 1 file to c:\_composer\_composer5\PVMeta\pv50_interface

[HUDSON] Archiving C:\_composer\_build_programs\hudson\jobs\Composer Build
Ad-hoc\workspace\java\PV_Web\pom.xml to
c:\_composer\_build_programs\hudson\jobs\Composer Build

[HUDSON] Archiving c:\_composer\_build\war\PV_Web-5.0.0.war to
c:\_composer\_build_programs\hudson\jobs\Composer Build




[INFO] An Ant BuildException has occured: Only one of tofile and todir may
be set.

View this message in context:
Sent from the Ant - Users mailing list archive at

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

View raw message