team-maker/build.xml

81 lines
2.3 KiB
XML
Raw Normal View History

2010-07-04 13:01:51 +00:00
<project name="JDB Team Maker" basedir="." default="release">
<property environment="env"/>
<property file="project.properties"/>
<path id="groovy.class.path">
<fileset dir="${env.GROOVY_HOME}/lib">
<include name="*.jar"/>
</fileset>
</path>
2010-07-06 13:07:09 +00:00
<path id="lib.class.path">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
2010-07-04 13:01:51 +00:00
<taskdef name="groovyc"
classpathref="groovy.class.path"
classname="org.codehaus.groovy.ant.Groovyc"/>
<target name="init">
<mkdir dir="${build.dir}/classes"/>
</target>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile" depends="init">
<groovyc
srcdir="${src.dir}"
2010-07-06 13:07:09 +00:00
destdir="${build.dir}/classes">
<classpath>
<path refid="groovy.class.path"/>
<path refid="lib.class.path"/>
</classpath>
</groovyc>
2010-07-04 13:01:51 +00:00
</target>
<target name="increment-build-number">
<propertyfile file="project.properties">
<entry key="build.number" operation="+" default="0"
value="1" type="int"/>
</propertyfile>
</target>
<target name="resources" depends="init">
2010-08-27 10:59:20 +00:00
<copy todir="${build.dir}/classes">
<fileset dir="${resources.dir}"/>
</copy>
</target>
<target name="build" depends="compile,resources,increment-build-number">
2010-07-04 13:01:51 +00:00
<unjar dest="${build.dir}/classes">
<fileset dir="${env.GROOVY_HOME}/embeddable">
<include name="*.jar"/>
</fileset>
</unjar>
2010-07-06 13:07:09 +00:00
<unjar dest="${build.dir}/classes">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
</unjar>
2010-07-04 13:01:51 +00:00
<jar
destfile="${build.dir}/${app.name}-${app.version}.${build.number}.jar"
basedir="${build.dir}/classes">
<manifest>
<attribute name="Main-Class" value="com.jdbernard.teammaker.ProfessionalPickup"/>
2010-08-27 10:59:20 +00:00
<attribute name="SplashScreen-Image" value="splash.png"/>
2010-07-04 13:01:51 +00:00
</manifest>
</jar>
</target>
<target name="release" depends="build">
</target>
</project>