• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unsetting attributes

 
Daniel Beck
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic