>>>>> "Diane" == Diane Holt <[EMAIL PROTECTED]> writes:
Diane> --- Phillip Lord <[EMAIL PROTECTED]> wrote:
>> So what I would like is the ability to specify properties in some
>> file on a per project basis, where I can stick all of this
>> stuff. Preferably I would like to be able to still override these
>> properties with command line parameters (so I can switch between
>> jikes, and javac easily for instance).
>>
>> Is it possible to do this at the moment?
Diane> Set up your various project properties files, then read them
Diane> in using <property file=${PROJECT}.properties/>. Your 'ant'
Diane> wrapper-script can deal with passing it to Ant if $PROJECT is
Diane> set as a user env var (or specified on the command-line, like
Diane> 'PROJECT=foo ant'), or you can also just define it on the
Diane> command-line with 'ant -DPROJECT=foo'. I use this approach
Diane> for things like which JDK file to read in for running tests,
Diane> etc.
Okay. I've gone for the following approach. I've stuck this
line at the beginning of my ant script and put my properties in
there.
<property file="${user.home}/.ant/bioinf.props" />
Thanks very much for your help.
Phil