ANTic Problem
Last week working on a continuous buils setup for a project, i stumbled upon a issue with ANT(Another Neat Tool), Java build tool.
The buildfile was working from the current directory where the file was , but was failing if ant was invoked from outside the directory.
So when i said
ant
in the current folder the build would happen successfully, but if i triggered the build from any other location using
ant -f some_dir/build.xml
it would fail.
I digged into the build file and found that all the property declarations were using value attribute to refer relative paths.Here the problem lied.
I changed the value attribute to location and Voila....... it started working.So it seems that sometimes minor mishaps can cause a blunder(and posssible time waste) while automating any actvity.
Just to summarize,Always use location attributes for properties , if you are refereing to paths in your buildfile