• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

unsetting attributes

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic