warning generation javadoc build.xml
Salut, j'ai quelques soucis lorsque je veux generer ma javadoc via ant.
Voici mon build.xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
| <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="begin" name="Puissance4">
<property name="class" location="build/classes" />
<property name="doc" location="doc" />
<property name="jar" location="jar" />
<!-- initialisation -->
<target name="init">
<tstamp />
<mkdir dir="${class}" />
<mkdir dir="${doc}" />
</target>
<!-- - - - - - - - - - - - - - -->
<!-- - - - - -->
<!-- Compilation -->
<!-- - - - - -->
<!-- - - - - - - - - - - - - - -->
<target name="compile" depends="init">
<javac srcdir="src" destdir="${class}" debug="on">
<classpath refid="junit.class.path" />
<classpath refid="javadoc.path"/>
</javac>
</target>
<!-- - - - - - - - - - - - - - -->
<!-- - - - - -->
<!-- Clean -->
<!-- - - - - -->
<!-- - - - - - - - - - - - - - -->
<target name="clean" description="clean up">
<delete dir="${class}" />
<delete dir="${doc}" />
</target>
<!-- - - - - - - - - - - - - - -->
<!-- - - - - -->
<!-- Jar -->
<!-- - - - - -->
<!-- - - - - - - - - - - - - - -->
<target name="jar" depends="compile">
<jar destfile="jar/Puissance4_Abalone.jar" basedir="${class}">
<manifest>
<attribute name="Main-Class" value="test.Test" />
</manifest>
</jar>
</target>
<target name="javadoc" depends="compile" description="Create Javadoc API documentation">
<javadoc sourcepath="src" destdir="doc" packagenames="*">
<!--<classpath refid="compile.classpath"/>-->
</javadoc>
</target>
<!-- Define the classpath which includes the junit.jar and the classes after compiling-->
<path id="junit.class.path">
<pathelement location="lib/junit.jar" />
<pathelement location="${build.dir}" />
</path>
<path id="javadoc.path">
<pathelement location="C:\Program Files\Java\jdk1.6.0_26\jre\lib" />
</path>
<target name="begin" depends="clean,javadoc"/>
</project> |