File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

target getting called more than once.

 
hasan khan
Ranch Hand
Posts: 222
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the following build.xml my problem is echo target is getting call 3 times when i call target compileall. only want it to call only once.


[ May 26, 2006: Message edited by: hasaN khaN ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The targets "admin", "common" and "login" all depend on the target "echo". Call any of them and echo will be run first. Call all of them and echo will be called once for each target.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hasan,
If you rewrite compileall, echo will only be called once:

The antCall in the original code makes each target execute in a separate environment so it doesn't know that echo has already been called.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic