| AW: Compiling with one jdk, building javadoc with anohter? | AW: Compiling with one jdk, building javadoc with anohter? 2003-03-17 - By Jason
--- Jan.Materne@(protected) wrote: > 1. scenario (should work) > Ant runs on JDK 1.4 (for javadoc) and you use > <javac executable="pathToJavac13" > compiler="javac1.3" />
Yeah, this will definitely work. It's sort of my default solution at the moement thoough for some reason I'm not crazy about it. > 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.
This is new to me. I'll give it a try. It it works that would be great. Thank for taking the time to reply!
-jason > 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) >
__________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com
|
|
 |