How to make exec not run by timestamp?

2008-12-29 Thread removeps-generic
How can I make the exec task smart enough so that it won't do anything if the file generated by the task has already been created? For example, does nothing the second time. Not sure how it works, but maybe if the timestamp of destFile.txt is equal to or larger than srcFile.txt than nothi

Re: Need help in build.xml file...

2008-12-29 Thread David Weintraub
First off. You shouldn't be doing antcalls. Especially in order. Ant has the ability to figure out how to build your software. All you have to do is give it the information it needs. For example: In the above (fairly empty) Ant script, running "ant" will

Re: Need help in build.xml file...

2008-12-29 Thread Anna Teittinen
Hello Glenn and all, The solution given below is what I wanted my build.xml file to do. I appologize if I had not been clear with my question earlier. With all the replies I received, I now understand how the 'unless' attribute works and have a better understanding of how to use the available a

RE: Ant- copy file from one folder to many folders

2008-12-29 Thread Rebhan, Gilbert
-Original Message- From: Alexei Alexei [mailto:a_subscri...@mail.ru] Sent: Monday, December 29, 2008 11:21 AM To: Rebhan, Gilbert Subject: RE: Ant- copy file from one folder to many folders /* The global task is: In the folder "myfolder1" I have file "myclass.class". 1. Find file "mycl

RE: Ant- copy file from one folder to many folders

2008-12-29 Thread Rebhan, Gilbert
-Original Message- From: David Weintraub [mailto:qazw...@gmail.com] Sent: Monday, December 29, 2008 6:10 AM To: Ant Users List; Alexei Alexei Subject: Re: Ant- copy file from one folder to many folders /* The standard task requires a single target name, so you couldn't do it with the s