RE: Search for properties file in parent directories

2010-11-11 Thread Ludwig, Michael
Merci Antoine et Dominique! > But may I inquire why you need that? Of course. :-) I don't really need this, I was just wondering whether it was possible. I could have maintained different configurations in different subdirectories, overriding configurations in directories higher up the tree. A us

Re: Search for properties file in parent directories

2010-11-11 Thread Dominique Devienne
On Thu, Nov 11, 2010 at 4:33 AM, Ludwig, Michael wrote: > On the command line, I can instruct ant to go searching for a build > file by climbing up the directory tree: [...] > From within a script, I can instruct ant to load properties from a > file using . > > Is there a way to instruct Ant to go

Re: Search for properties file in parent directories

2010-11-11 Thread Antoine Levy-Lambert
Hello Michael, I do not know of any way of doing this in a generic fashion. If you have few levels of directories and the number of directories is known, you can write this : this will not bail out if one of the property files does not exists and it will read the files in the order of

Search for properties file in parent directories

2010-11-11 Thread Ludwig, Michael
On the command line, I can instruct ant to go searching for a build file by climbing up the directory tree: ant -h ... -find(s)earch for buildfile towards the root of -s the filesystem and use it From within a script, I can instruct ant to load properties from a fi