Improved build.

This commit is contained in:
Christian P. MOMON 2016-09-21 14:06:19 +02:00
parent 92cb043e84
commit c362d77fed
3 changed files with 150 additions and 144 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<project default="dist" name="Create Library Jar"> <project default="dist" name="Build-libjar">
<!--ANT 1.7 is required --> <!--ANT 1.7 is required -->
<property name="buildjar.version" value="1.5" /> <property name="buildjar.version" value="1.5" />
<property file="build.properties" /> <property file="build.properties" />
@ -64,7 +64,7 @@
</target> </target>
<!-- ***** Test ***** --> <!-- ***** Test ***** -->
<target name="test" description="Run unit tests" depends="clear,compile,compile-test,clean"> <target name="test" description="Run unit tests" depends="clear,compile,compile-test">
<mkdir dir="${build.dir}/test-reports" /> <mkdir dir="${build.dir}/test-reports" />
<junit printsummary="yes" haltonfailure="no"> <junit printsummary="yes" haltonfailure="no">
<classpath refid="test.classpath.run" /> <classpath refid="test.classpath.run" />
@ -128,6 +128,7 @@
</zip> </zip>
<!-- Zip package --> <!-- Zip package -->
<property name="dist.zip" value="${basedir}/dist/${dist.name}.zip" />
<!-- <!--
<property name="dist.zip" value="${basedir}/dist/${dist.name}.zip" /> <property name="dist.zip" value="${basedir}/dist/${dist.name}.zip" />
<zip destfile="${dist.zip}" update="true"> <zip destfile="${dist.zip}" update="true">

View file

@ -1,8 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="dist" name="Xidyn"> <project default="main" name="Build">
<!-- ***** Import ***** --> <!-- ***** Import ***** -->
<import file="build-libjar.xml" /> <import file="build-libjar.xml" />
<!-- ***** Main ***** -->
<target name="main" description="" depends="dist,clean"/>
<!-- ***** Define demo properties ***** --> <!-- ***** Define demo properties ***** -->
<property name="demo.src" value="${basedir}/demo" /> <property name="demo.src" value="${basedir}/demo" />
<property name="demo.classes" value="${build.dir}/demo-classes" /> <property name="demo.classes" value="${build.dir}/demo-classes" />

View file

@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<project default="buildandgit" name="xidyn"> <project default="main" name="Buildandgit">
<!-- --> <!-- -->
<import file="build.xml" /> <import file="build.xml" />
<target name="main" description="" depends="buildandgit,clean"/>
</project> </project>