This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 15949
    
  19

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unsetting attributes
 
Similar Threads
Help Needed with ANT
Ant help needed
scope of property in Ant 1.5
unable to create War using Ant
different target calling different properties