ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Specifying Jdk Version in build.xml
Date Tue, 24 Apr 2007 04:59:40 GMT
By default <javac> uses the runtime Ant runs on.
With   <javac source target>  you could specify the class file format.
If you really needs another JDK you can use <javac fork executable>.

See the examples of <javac>


Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Scot P. Floess [mailto:floess@mindspring.com] 
>Gesendet: Montag, 23. April 2007 23:42
>An: Ant Users List
>Betreff: Re: Specifying Jdk Version in build.xml
>
>I think all you need to do in your <javac> task is utilize the target 
>attribute.  For instance:
>
><javc target = "1.4" ... />
>
>Petr V. wrote:
>> Hi,
>>
>> I have jdk 1.4 as well as jdk 1.5 in my machine.
>>  
>> JAVA_HOME points to jdk 1.5
>>  
>> I need to compile my java code using jdk 1.4.
>>  
>> How could I specify in build.xml to use jdk1.4 for compiling 
>my code instead of jdk1.5? How could I make sure that ant uses 
>jdk1.4 and not jdk1.5 after that.
>>
>> Thanks
>>
>> Petr V.
>>
>>        
>> ---------------------------------
>> Ahhh...imagining that irresistible "new car" smell?
>>  Check outnew cars at Yahoo! Autos.
>>   
>
>-- 
>Scot P. Floess
>27 Lake Royale
>Louisburg, NC  27549
>
>252-478-8087 (Home)
>919-392-6730 (Work)
>
>Chief Architect JPlate  http://sourceforge.net/projects/jplate
>Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message