ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason <jason...@yahoo.com>
Subject Re: AW: Compiling with one jdk, building javadoc with anohter?
Date Mon, 17 Mar 2003 16:30:35 GMT

--- Jan.Materne@rzf.fin-nrw.de 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@yahoo.com]
> Gesendet am: Freitag, 14. März 2003 22:43
> An: user@ant.apache.org
> 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@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

Mime
View raw message