Up vote 0 down vote favorite share g+ share fb share tw.
I have an issue where my automated build environment necessitates a different version of ant than the actual delegated scripts being run to produce the build. I do not have an environmental variable for ANT_HOME. I throw my CI environment the ANT_HOME to a directory of ant-1.7.0 But I need to override or unset ANT_HOME to a directory of ant-1.6.5 so the targets I call don't inherit the ANT_HOME, and run out of the 1.7.0 folder.
Can anyone think of a good way to do this? I can't modify the delegated targets of the build script but I can modify anything in the front end. I'm using Cruisecontrol2.8.4 and the aforementioned ant versions.
Edit: The build targets I call set their own ANT_HOME to the 1.6.5 folder but it is being ignored as the previously set ANT_HOME to invoke cruisecontrol is immutable ant build cruisecontrol link|improve this question edited Sep 28 '11 at 16:00 asked Sep 28 '11 at 15:54yep3057 80% accept rate.
You can unset properties with AntContrib. In your ant script... Import AntContrib: Do the unset: This removes ANT_HOME from the current set of properties allowing it to be set again.
Oh wow, thats exactly what I needed. We had been using antContrib for other tasks, I didn't even think to see if such a thing existed in that package. Thanks.
– yep Oct 3 '11 at 15:15.
Try setting the anthome attribute of the ant builder in your cruisecontrol configuration file : cruisecontrol.sourceforge.net/main/confi... This should call your version of ant and presumably all called ant scripts will also use this version.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.