2014-05-28 13:43:37 +00:00
|
|
|
<project name="ethereumj-postpackage" default="run" basedir=".">
|
2014-05-27 07:17:11 +00:00
|
|
|
|
|
|
|
<description>
|
2014-05-28 13:43:37 +00:00
|
|
|
Build file to package the EthereumJ client and dependencies into a zip-file
|
2014-05-27 07:17:11 +00:00
|
|
|
</description>
|
|
|
|
<!-- set global properties for this build -->
|
|
|
|
<property name="src" location="src"/>
|
|
|
|
<property name="build" location="build"/>
|
|
|
|
<property name="dist" location="dist" />
|
|
|
|
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<!-- Create the time stamp -->
|
|
|
|
<tstamp/>
|
|
|
|
|
|
|
|
<echo message="Ant is taking control [assembly the package]"> </echo>
|
|
|
|
<echo message="${maven.project.artifactId}"> </echo>
|
|
|
|
<echo message="${maven.project.version}"> </echo>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="make-package">
|
|
|
|
|
|
|
|
<mkdir dir="./target/package"/>
|
2014-05-27 09:01:58 +00:00
|
|
|
<copy todir="./target/package/ethereumj/lib">
|
2014-05-27 07:17:11 +00:00
|
|
|
<fileset dir="./target/dependency"/>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<copy file="./target/${maven.project.artifactId}-${maven.project.version}.jar"
|
2014-05-27 09:01:58 +00:00
|
|
|
tofile="./target/package/ethereumj/ethereumj.jar"/>
|
2014-05-27 07:17:11 +00:00
|
|
|
|
2014-05-27 09:01:58 +00:00
|
|
|
<copy todir="./target/package/ethereumj/">
|
2014-05-27 07:17:11 +00:00
|
|
|
<fileset dir="./target/classes/config"/>
|
|
|
|
</copy>
|
|
|
|
|
2014-05-27 09:01:58 +00:00
|
|
|
<copy file="./target/classes/log4j.properties" todir="./target/package/ethereumj/config"/>
|
|
|
|
<copy file="./target/classes/system.properties" todir="./target/package/ethereumj/config"/>
|
|
|
|
<copy file="./target/classes/GeoLiteCity.dat" todir="./target/package/ethereumj/config"/>
|
2014-05-27 07:17:11 +00:00
|
|
|
|
|
|
|
|
2014-05-28 13:43:37 +00:00
|
|
|
<zip destfile="ethereumj-${DSTAMP}-${TSTAMP}.zip" basedir="./target/package">
|
2014-05-27 07:17:11 +00:00
|
|
|
</zip>
|
|
|
|
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="run" depends="init, make-package"></target>
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-05-28 13:43:37 +00:00
|
|
|
</project>
|