wood burning stoves*
The moose likes Ant, Maven and Other Build Tools and the fly likes unsetting attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "unsetting attributes" Watch "unsetting attributes" New topic
Author

unsetting attributes

Daniel Beck
Greenhorn

Joined: May 21, 2004
Posts: 12
Hello,

I have the following problem, when using ant. I would really appreciate a lot, if someone can help me !

The target "compile_tdl" calls "-compile_tdl_sub" a lot of times.
The matter is the following :"-compile_tdl_sub" does some intensive calculation that can take each time several hours. So I checked in "compile_tdl" if it's really necessary to compile. If not ,the property compile_tdl_grm_uptodate wont be set.
My Problem : Then I'm calling "-compile_tdl_sub" more as one time, once compile_tdl_grm_uptodate is set, it will be set for all the following calls, and everything will be compiled again, even if it unnecessary.
How can I change this ? Is it possible to "unset" compile_tdl_grm_uptodate



Best regards<br />---> Daniel
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

Once an ant property has been set, it is immutable - it can neither be changed nor cleared.

However some of the types of ant "recursions" (Ant invoking ant) allow for the wholesale inclusion or exclusion of properties to the called Ant task. If you tell it to drop all properties, you then have to explicitly pass any properties you didn't want dropped.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Consider Paul's rocket mass heater.
 
subject: unsetting attributes