ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35590] - Request: control source/target of javac through a property
Date Mon, 04 Jul 2005 05:47:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35590>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35590





------- Additional Comments From jan@materne.de  2005-07-04 07:47 -------
> Now, with defining which compiler to use, its easy
> enough to define build.compiler either on the command line or in a 
> properties file. It would be nice to have similar way to define which 
> VM version class files should work with.

build.xml
<project>
    <property file="build.properties"/>
    ....
    <!-- set defaults -->
    <property name="javac.source" value="1.4"/>
    <property name="javac.target" value="1.4"/>

    <javac source="${javac.source}" target="${javac.target}" ...


build.properties
javac.source=1.3
javac.target=1.3


Could also be override on startup
    ant -Djavac.source=1.5 -Djavac.target=1.5



All like Matt said. 
Where is the problem?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message