Why not have multiple property files -- each with a different
combination of properties you would want set? Then, you could have the
user specify the right build properties file on the command line:

In your build.xml:

<!-- Default -->
 <property name="build.file" value="build.properties"/>
<property file="${build.file}"/>

On the command line:

$ ant -Dbuild.file=orange.properties
$ ant -Dbuild.file=cherry.properties


On Feb 4, 2008 10:25 PM, Z W <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have a properties file with property values set to different files.
>
> Eg:
> A.properties
> -----------------
> File_Orange=Orange.jmx
> File_Cherry=Cherry.jmx
>
> In the buildfile, could someone give examples on
> 1-  how the build.xml could select a file to run with, ie build.xml picks
> Orange.jmx or Cherry.jmx
> (I'm thinking that some kind of conditional property check is necessary to
> know which file build.xml can know to run with)
> 2 - how the build.xml know that all the files should be selected to run with
>
>
> Appreciate any help.
> Good day
>



-- 
--
David Weintraub
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to