Add ANT build.

This commit is contained in:
Christian P. MOMON 2013-06-20 02:05:11 +02:00
parent 7084fa8ca8
commit c9445cfc1a
3 changed files with 42 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/bin /bin
/dist

3
build.num Normal file
View file

@ -0,0 +1,3 @@
#Build Number for ANT. Do not edit!
#Thu Jun 20 02:03:54 CEST 2013
build.number=4

38
build.xml Normal file
View file

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="dist" name="Create Jar for Project devinsy-utils">
<!--ANT 1.7 is required -->
<!-- Run Eclipse before to run ant. -->
<property name="product" value="devinsy-utils" />
<buildnumber file="build.num" description="Id of the build"/>
<property name="version" value="0.1.${build.number}" /> <!-- AUTOMATIC MANAGEMENT -->
<property name="build.dir" value="${basedir}/build" />
<property name="dist.name" value="${product}-${version}" />
<property name="dist.jar" value="${basedir}/dist/${dist.name}.jar" />
<property name="dist.srczip" value="${basedir}/dist/${dist.name}-sources.zip" />
<tstamp>
<format property="TODAY" pattern="dd/MM/yyyy HH:mm:ss" />
</tstamp>
<!-- TARGET DIST -->
<target name="dist" description="Build distribution directory">
<delete file="${dist.zip}" />
<jar destfile="${dist.jar}" >
<manifest>
<attribute name="Built-By" value="${user.name} using DEVINSY-UTILS ANT"/>
<attribute name="Built-Date" value="${TODAY}"/>
</manifest>
<fileset dir="${basedir}/bin" excludes="TestTree/**" />
<zipfileset dir="${basedir}/" includes="LICENSE"/>
</jar>
<zip destfile="${dist.srczip}"
update="true"
preserve0permissions="true">
<fileset dir="${basedir}/src"/>
<zipfileset dir="${basedir}/" includes="LICENSE"/>
</zip>
</target>
</project>