diff options
author | jestin | 2012-05-12 14:26:08 +0000 |
---|---|---|
committer | jestin | 2012-05-12 14:26:08 +0000 |
commit | 4ffe8b84071babe544086f94c66431380d301d59 (patch) | |
tree | 12c9c3a4d6f00c071d8cd298f041dc383e887ff7 /build.xml | |
parent | 6fbefad24ec7e8783365db61b03357d50ee0dd56 (diff) | |
download | ivy-java-4ffe8b84071babe544086f94c66431380d301d59.zip ivy-java-4ffe8b84071babe544086f94c66431380d301d59.tar.gz ivy-java-4ffe8b84071babe544086f94c66431380d301d59.tar.bz2 ivy-java-4ffe8b84071babe544086f94c66431380d301d59.tar.xz |
- minor code cleanup
- adds a separate file (Protocol.java) containing the Enum values in a proper
pattern
- resolved a synchronization bug on Ivy.stop()
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -4,8 +4,10 @@ <property name="defaultbus" value="-DIVYBUS=224.5.6.7:8910" /> <property name="src.dir" value="src"/> + <property name="testsrc.dir" value="tests"/> <property name="build.dir" value="build"/> <property name="classes.dir" value="${build.dir}/classes"/> + <property name="testclasses.dir" value="${build.dir}/testclasses"/> <property name="jar.dir" value="${build.dir}/jar"/> <property name="main-class" value="fr.dgac.ivy.tools.Probe"/> <property name="lib.dir" value="lib"/> @@ -24,13 +26,18 @@ <property name="servlet.jar" value="servlet25-api.jar "/> <path id="classpath"> - <fileset dir="${lib.dir}" includes="**/*.jar"/> + <fileset dir="${jar.dir}" includes="**/*.jar"/> <fileset dir="${jars.home}" includes="**/${servlet.jar}"/> </path> + <path id="myjar"> + <fileset dir="${jar.dir}" includes="**/*.jar"/> + </path> + <target name="init"> <mkdir dir="${build.dir}"/> <mkdir dir="${classes.dir}"/> + <mkdir dir="${testclasses.dir}"/> <mkdir dir="${jar.dir}"/> <mkdir dir="${build.dir}/doc/api"/> </target> @@ -43,6 +50,10 @@ <javac includeantruntime="true" srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath"/> </target> + <target name="tests" depends="jar"> + <javac includeantruntime="true" srcdir="${testsrc.dir}" destdir="${testclasses.dir}" classpathref="myjar"/> + </target> + <target name="style"> <java fork="true" classname="com.puppycrawl.tools.checkstyle.Main"> <arg value="-c"/> @@ -65,6 +76,7 @@ <zips><fileset dir="lib" includes="**/java-getopt-1.0.13.jar"/></zips> </archives> <fileset dir="." includes="README,COPYING.LIB,BUGS,Changelog"/> + <fileset dir="src" includes="**/*.java"/> </jar> </target> |