Is this the expected behaviour for ant 1.4.1? i.e. it passes a -source
flag to the modern compiler when the compiler in fact doesn't support
it....?
--
dIon Gillard, Multitask Consulting
Work: http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers
----- Forwarded by dIon Gillard/Multitask Consulting/AU on 06/20/02 11:17
AM -----
James Macgill <j.macgill@geography.leeds.ac.uk>
06/19/02 07:03 PM
Please respond to "Turbine Maven Developers List"
To: "Turbine Maven Developers List" <turbine-maven-dev@jakarta.apache.org>
cc:
Subject: Re: [PATCH] support for -source option in javac (repost)
At 23:22 19/06/2002 +1000, dion@multitask.com.au wrote:
>Hi James,
>
>testing this patch using jdk 1.3 and ant 1.4.1, the javac.compile step
>fails with a message "invalid flag -source".
>
>I think we'll need to special case the jdk version in the build files to
>make this work with ant 1.4.
>
>FWIW, the jdk1.3 javac on my box doesn't list -source as an option.
Sorry, I had assumed that Ant was smart enough not to pass the option to
compilers which would not understand it. From the ant manual:
"Value of the -source command line switch, will be ignored by all
implementations except modern, legal values are "1.3" and "1.4" - by
default, no -source argument will be used at all."
Given that 1.2 is classic by default, I had hoped that Ant would do the
right thing with 1.3.
I'll give this some more thought and see if I can put together a better
patch.
James
>--
>dIon Gillard, Multitask Consulting
>Work: http://www.multitask.com.au
>Developers: http://adslgateway.multitask.com.au/developers
>
>
>
>
> James
> Macgill
>
> <j.macgill@geography.le To:
> turbine-maven-dev@jakarta.apache.org
> eds.ac.uk> cc:
>
> Subject: [PATCH]
> support for -source option in javac (repost)
> 06/19/02 03:09
> AM
>
> Please respond
> to
>
> "Turbine
> Maven
>
> Developers
> List"
>
>
>
>
>
>
>
>
>
>(Apologies if this reaches the list twice, but something seems to have
gone
>
>wrong the first time)
>
>My project uses a number of source features found only in java1.4, in
order
>
>to compile these files you need to use
>javac -source = 1.4 foo.java
>
>I have added maven.compile.source in this patch and set the default to:
>
>maven.compile.source = 1.3
>
>This is the default in javac 1.3 and 1.4 and will have no effect in javac
>1.2
>So, if you do not modify the default you should see no difference at all,
>anyone with java1.4 specific code can use the option so that is it
possible
>
>to compile using maven
>
>Hope this is enough information
>
>All the best
>
>James
>
>
>
>--
>James Macgill
>Center for Computational Geography http://www.ccg.leeds.ac.uk
>Spell Checker (c) Creative Spelling inc (aka my dyslexic brain)
>http://www.geotools.org a client side java mapping toolkit.(See attached
>file: jmacgill.patch)--
>To unsubscribe, e-mail: <
>mailto:turbine-maven-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <
>mailto:turbine-maven-dev-help@jakarta.apache.org>
>
>
>--
>To unsubscribe,
>e-mail: <mailto:turbine-maven-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:turbine-maven-dev-help@jakarta.apache.org>
--
James Macgill
Center for Computational Geography
Spell Checker (c) Creative Spelling inc (aka my dyslexic brain)
http://www.geotools.org the open source java mapping toolkit.
--
To unsubscribe, e-mail: <mailto:turbine-maven-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-dev-help@jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
|