<?xml version="1.0" ?>
<project name="javamon" default="compile">

<presetdef name="javac">
  <javac includeantruntime="false" />
</presetdef>

<!-- Compilation -->
<target name="compile">
  <javac srcdir="src" destdir="class" classpath="class"/>
</target>

<!-- Documentation -->
<target name="doc">
  <javadoc sourcepath="src" destdir="doc">
    <fileset dir="src" />
  </javadoc>
</target>

<!-- Distribution via un jar. -->
<target name="dist" depends="compile" >
  <jar jarfile="javamon.jar" basedir="class">
    <manifest>
	<attribute name="Main-Class" 
		   value="class/client/Client"/>
    </manifest>
  </jar>
</target>

<!-- Run -->
<target name="run" depends="compile">
  <java classname="client.Client" classpath="class" spawn="true" fork="true"/>
</target>

<!-- Run Jar -->
<target name="runJar" depends="dist">
  <java jar="javamon.jar" fork="true">
  </java>
</target>

<target name="compileTest" depends="compile">
  <javac srcdir="tests/" destdir="tests" classpath="class"/>
</target>

<!--<target name="testPokemon" depends="compileTest">-->
<!--  <java classname="testPokemon">-->
<!--  </java>-->
<!--</target>-->

</project>

<?xml version="1.0" ?>
<project name="javamon" default="compile">

<presetdef name="javac">
  <javac includeantruntime="false" />
</presetdef>

<!-- Compilation -->
<target name="compile">
  <javac srcdir="src" destdir="class" classpath="class"/>
</target>

<!-- Documentation -->
<target name="doc">
  <javadoc sourcepath="src" destdir="doc">
    <fileset dir="src" />
  </javadoc>
</target>

<!-- Distribution via un jar. -->
<target name="dist" depends="compile" >
  <jar jarfile="javamon.jar" basedir="class">
    <manifest>
	<attribute name="Main-Class" 
		   value="class/client/Client"/>
    </manifest>
  </jar>
</target>

<!-- Run -->
<target name="run" depends="compile">
  <java classname="client.Client" classpath="class" spawn="true" fork="true"/>
</target>

<!-- Run Jar -->
<target name="runJar" depends="dist">
  <java jar="javamon.jar" fork="true">
  </java>
</target>

<target name="compileTest" depends="compile">
  <javac srcdir="tests/" destdir="class/" />
</target>

<target name="testPokemon" depends="compileTest">
  <java classname="javamon.model.DemoMatch" classpath="class/">
  </java>
</target>

</project>

Structure de tests qui marche
Structure de tests qui marche
