ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Mixing compilers
Date Fri, 09 Aug 2002 06:25:13 GMT
On Thu, 8 Aug 2002, Ed Mack <edm@wrq.com> wrote:

> When I added the executable attribute, I got:
> 
>     [javac] javac: invalid flag: -sourcepath
>     [javac] use: javac
> [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath p
> ath][-nowrite][-deprecation][-d dir][-J<runtime flag>] file.java...
> 
> I know I'm using the 1.1 compiler, now, from the usage line.

Yes.  And now you need to tell Ant that it should use 1.1 command line
switches (it will use classpath instead of sourcepath).  To do so, you
must set the compiler attribute to javac1.1 - sorry, I forgot to add
it in my first response.

Stefan


--
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