38 lines
1.5 KiB
XML
38 lines
1.5 KiB
XML
<?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>
|