ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dIon Gillard <d...@multitask.com.au>
Subject Re: Setting Java_Home?
Date Mon, 25 Feb 2002 16:27:11 GMT
Mike Kaufman wrote:

>See my earlier email from today.  You have to recursively invoke ant using
>the <exec> tag and set whatever environment variables you want using the
><env> tags in your <exec>.  
>
What? We just have a separate step that sets a property based on one of 
the eclipse classes being available. If it's there, we set 
build.compiler to the eclipse one, otherwise we leave it alone. Works in 
and out of eclipse/wsad.

See the archives for more info. We discussed this last week at the latest.

>
>
>Mike
>
>
>>-----Original Message-----
>>From: Gordon Rose [mailto:Gordon@ActiveCert.com]
>>Sent: Friday, February 22, 2002 9:22 AM
>>To: ant-user@jakarta.apache.org
>>Subject: Setting Java_Home?
>>
>>
>>Hi,
>>
>>I'm using IBM's WSAD and Ant. In my build of a "Hello World" 
>>app, I got the error message that:
>>BuildException: C:\Workspace\HelloWorldProject\build.xml:11: 
>>Cannot use classic compiler, as it is not available A common 
>>solution is to set the environment variable JAVA_HOME to your 
>>jdk directory..
>>
>>I've understood that you need to use IBM's compiler for any 
>>WSAD work. So, I'd like to temporarily set the JAVA_HOME 
>>variable to IBM's JDK. That's easy enough using an 
>>environment variables script or by modifying the variable for 
>>the entire system. However, to keep things clean, I'd like to 
>>do this from within Ant. Does Ant convert the OS variable 
>>JAVA_HOME to an internal Ant property that I could override 
>>by defining the property in a build.xml or properties file? 
>>Again, my reason for this approach is a) leaving my system's 
>>Java_Home @ the standard Sun JDK and b) avoiding scripts, 
>>etc. that make moving/modifying the configuration messy. Thanks much,
>>
>>Gordon
>>


-- 
dIon Gillard, Multitask Consulting
http://www.multitask.com.au/developers




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message