On Sunday 28 May 2006 20:11, Chris Hostetter wrote:
> 
> : How about adding junit.jar to the javadoc classpath?
> :
> : http://ant.apache.org/manual/CoreTasks/javadoc.html
> 
> okay ... you mean using either the "classpath" or "classpathref" of the
> <javadoc> task right?
> 
> But how do we (in a way that will work for all users) know where the
> junit.jar is to add it to the classpath?
> 
> The expectation is that developers have ant installed somewhere, and
> wherever they have it installed they have the junit.jar in it's lib
> directory -- how do we modify the build.xml, so that it knows what that
> location is so it can specify it when execing the <javadoc> target?
> (regardless of how people may have ant/junit installed on their machines)
> 
>       ?

Adding this path element might work:
${ant.library.dir}/junit.jar

(I could not make that work here. For some reason on my machine
${ant.library.dir} points to /usr/share/ant/lib even though the environment
variable ANT_HOME is set to ~/ant/apache-ant-1.6.5, and $ANT_HOME/bin
is on the shell PATH.)

Another way might be to set the build.sysclasspath property to "last", but
that has the disadvantage of adding more things to the classpath.

When ${ant.library.dir}/junit.jar does not work a specialist might
be needed...

Regards,
Paul Elschot

Reply via email to