I installed jsdk 1.3.1 and 1.4 locally d:\jdk1.3.1 (JAVA_HOME) and d:\jdk1.4
(JAVA_HOME14), and I can get the  the environment
varible to ant.
The question is how, to get the env variables from property file instead of
changing the build script itself?
I want to be able to compile with a different java version based on some
property in property file.
<project name="build">
        <property environment="env" />
        <property name="build.sysclasspath" value="last"/>
        <path id="my.classpath">
                <pathelement location="${srcdir}"/>
              <fileset dir="${env.JAVA_HOME14}/lib">
                <include name="**/*.jar"/>
              </fileset>
       </path>
I could use property name like "MY_JAVA_HOME"
<fileset dir="${MY_JAVA_HOME}/lib">
                <include name="**/*.jar"/>
              </fileset>
And override it -DMY_JAVA_HOME=d:/jdk1.4 eg., but I prefer setting it on
property file instead
Any suggestions?


Thanks
[EMAIL PROTECTED]

       


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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

Reply via email to