ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Stockall <>
Subject Re: Loading Properties From a File
Date Thu, 08 May 2003 15:05:04 GMT
On Thu, 2003-05-08 at 10:57, Matthew Oatham wrote:
> Hi,
> I had my build script and properties in the same dir and had the basdir set 
> to "." I have now moved the build file and properties files down the 
> directory tree and set the basdir to "../.." now the properties files arn't 
> picked up, ant expects to find them in the place they used to be i.e the 
> location of my basedir.
> How can I load my properties files from the same location as by build file 
> when the basdir is set to "../.."

Load the property file with 'file="dir1/dir2/"' where
'dir1/dir2' are the directories represented by '../..' in the ${basedir}

You can also use ${user.dir} which will be the directory where Ant was
invoked from.

Jesse Stockall <>

View raw message