Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

How do I specify the compiler on the cmd line?

Todd Patrick

2008-01-11

Replies: Find Java Web Hosting

Author LoginPost Reply
I have a simple target:

<target name="all" depends="init">
 <javac srcdir="${src}"
      destdir="${build}"
      executable="/usr/jdk1.5.0_06/bin/javac"
      compiler="javac1.5">
   <classpath>
   <pathelement
location="/lib/opencsv-1.3/deploy/opencsv-1.3.jar"/>
   </classpath>
 </javac>
</target>


In which I specify to use JDK 5 in the Javac Task.

How do I specify the compiler on the cmd line and remove the following
lines from the Javac Task:

executable="/usr/jdk1.5.0_06/bin/javac"
compiler="javac1.5"


Thanks,

--Todd

-----------------------------------------
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact
the sender by reply email and destroy all copies of the original
message.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.