ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject AW: Compiling with one jdk, building javadoc with anohter?
Date Mon, 17 Mar 2003 06:56:14 GMT
1. scenario (should work)
Ant runs on JDK 1.4 (for javadoc) and you use
	<javac executable="pathToJavac13" compiler="javac1.3" />

2. scenario (may work)
Run javadoc in a new target and set java.home to the JDK14 before that.
	<target name="javadoc">
	    <antcall target="-javadoc"><param name="java.home"
	<target name="-javadoc>
	    <!-- the usual javadoc stuff -->
Background: I took a look into the source and javadoc uses the util class
JDKEnvUtils. The
invoked getJdkExecutable() method uses that system property as base for
searching the required 
took - here the javadoc tool.

Hope that helps.

Jan Matèrne

-----Ursprüngliche Nachricht-----
Von: Jason []
Gesendet am: Freitag, 14. März 2003 22:43
Betreff: Compiling with one jdk, building javadoc with anohter?


I'm using ant 1.5.1 for my build process and I've run
into a scenario I'm having trouble with.  I need to
compile with one jdk (1.3) but run the javadoc task
using another (1.4).  I can't figure out how to
accomplish this.  In the past, I've compiled with
different versions of the jdk from within the same
script using the javac task's fork/excecutable
attributes.  I guess I'm looking for something similar
in the javadoc task but I can't seem to find it.  Can
anybody set me straight?  Thanks in advance.


Do you Yahoo!?
Yahoo! Web Hosting - establish your business online

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message