Are you putting calls into your build.xml to call your targets? You should have something like this: [...] [...] [...] [...] Running "ant complete" will run "init", "clean", "compile", and "sendReport" only once. If you call multiple targets on the command line, or use tasks, you will get multiple calls because each target is executed separately. Note that I only "complete" depending upon "clean". You usually don't force a "clean" or you break your build dependency checking. Here's my test build.xml: Try running "ant compile", "ant sendReport" and "ant complete". -- David Weintraub qazwart@gmail.com On Wed, Jun 25, 2008 at 9:38 AM, Guy Catz wrote: > I want to run the most trivial build process - > init, and - clean, compile, sendReport which depend on init. > > Now, I've wrote a MAIN target - > > > > > > > > > > The problem - init is being called three times. > > I know that the best way to do it is > > but the problem is that I have to do something between the compile and the sendReport targets. > > how can I accomplish this? > > Please advise. > > Thanks, > Guy. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org