I am working on some project using Apache Ant and my project layout is as follows:
project/build.xml
project/properties/build.properties
project/tool/antcontrib.jar
Here, when i run ant command it working fine and my base directory is basedir="."
Now, I want my project layout to be as follows:
project/folder/build.xml
project/properties/build.properties
project/tool/antcontrib.jar
Now, I changed my base directory to basedir="..". I thought it might work. but still it's not working. So i wan't to known what we have to set our basedir for '../' Here is the code block related to taskdef defined in my build.xml file.
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${tool.ant.contrib}"/>
</classpath>
</taskdef>
NOTE: I known that build.xml and properties file should be in same folder its a standard practice. But i don't want to follow that..can any one help me out here...