You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Matthew Oatham <ma...@hotmail.com> on 2003/05/08 16:57:08 UTC
Loading Properties From a File
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 "../.."
Cheers.
Matt
_________________________________________________________________
Get Hotmail on your mobile phone http://www.msn.co.uk/mobile
Re: Loading Properties From a File
Posted by Jesse Stockall <st...@magma.ca>.
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/file.properties"' 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 <st...@magma.ca>