Ainsi parlait Stefan Bodewig :
> On Thu, 14 Mar 2002, Guillaume Rousse <[EMAIL PROTECTED]> wrote:
> > -subpackages options, which is javadoc 1.4 specific :-(
>
> I don't have the tool docs for 1.4 with me right now, maybe we can
> adapt <javadoc> to use that option if it detects JDK 1.4?
>
> > So i need to test jdk version first,
>
> <available> is your friend.
I used <condition> instead.
<condition property="jdk-1.4">
<equals arg1="${ant.java.version}" arg2="1.4"/>
</condition>
<target name="javadoc-default" unless="jdk-1.4">
[..]
</target>
<target name="javadoc-1.4" if="jdk-1.4">
[..]
</target>
<target name="javadoc" depends="javadoc-default,javadoc-1.4"/>
> > use an exec task if 1.4, and a javadoc task in the opposite
> > case.
>
> Should work.
But with much pain. My original javadoc task was:
<javadoc
sourcepath="${src}"
classpathref="build.classpath"
destdir="${build.javadoc}"
packagenames="${packages}"
use="${javadoc.use}"
private="${javadoc.private}"
splitindex="${javadoc.splitindex}"
author="${javadoc.author}"
windowtitle="ArgoUML Documentation"
overview="${src}/overview.html"
>
<bottom><![CDATA[lot of HTML]]></bottom>
</javadoc>
i had to hardcode true/false params using properties (private, use,
splitindex), class path, and bottom parameter, this time without CDATA
convenience for escaping content. Any better idea welcomed.
--
Guillaume Rousse <[EMAIL PROTECTED]>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>