| AW: Compiling with one jdk, building javadoc with anohter? | AW: Compiling with one jdk, building javadoc with anohter? 2003-03-17 - By Jan.Materne@(protected)
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" value="PathToMyJDK14"/></antcall> </target> <target name="-javadoc> <!-- the usual javadoc stuff --> </target> 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 [mailto:jasonriz@(protected)] Gesendet am: Freitag, 14. M?rz 2003 22:43 An: user@(protected) Betreff: Compiling with one jdk, building javadoc with anohter?
Hello,
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.
-jason
__________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |