xidyn/build.xml

49 lines
1.5 KiB
XML
Raw Normal View History

2013-06-26 02:21:03 +02:00
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2013-06-26 17:07:27 +02:00
<project default="dist-top" name="Xidyn">
2013-06-26 02:21:03 +02:00
<!-- -->
2013-06-26 14:06:42 +02:00
<import file="buildjar.xml" />
2013-06-26 02:21:03 +02:00
<!-- -->
<property name="demo.src" value="${basedir}/demo" />
<property name="demo.classes" value="${build.dir}/demo-classes" />
<!-- -->
<path id="demo.classpath.compile">
<path refid="build.classpath"/>
<pathelement path="${build.classes}"/>
</path>
<path id="demo.classpath.run">
<path refid="demo.classpath.compile"/>
<pathelement path="${demo.classes}"/>
</path>
<!-- ***** Compile demo ***** -->
<target name="compile-demo" description="Compile demo">
<mkdir dir="${demo.classes}"/>
<javac srcdir="${demo.src}" destdir="${demo.classes}" debug="${debug}" deprecation="on" includeantruntime="false">
<classpath refid="demo.classpath.compile"/>
2007-01-18 13:11:47 +01:00
</javac>
</target>
2013-06-26 02:21:03 +02:00
<!-- ***** Demo ***** -->
<target name="demo" description="Run demo" depends="clean,compile,compile-demo">
<java classname="XidynDemo" maxmemory="20m" fork="true">
<classpath refid="demo.classpath.run" />
2007-01-18 13:11:47 +01:00
</java>
</target>
2013-06-26 02:21:03 +02:00
<!-- -->
2013-06-26 17:07:27 +02:00
<target name="dist-top" description="Build distribution" depends="dist,compile-demo">
2013-06-26 02:21:03 +02:00
<!-- Package demo -->
<property name="demo.jar" value="${dist.dir}/demo.jar" />
<jar update="no" jarfile="${demo.jar}">
<fileset dir="${build.classes}" />
<fileset dir="${demo.classes}" />
2013-06-21 02:55:52 +02:00
<fileset dir="resources" />
2007-02-05 06:10:27 +01:00
</jar>
2013-06-26 02:21:03 +02:00
<copy file="rundemo" todir="${dist.dir}/" overwrite="true" />
2013-06-26 17:07:27 +02:00
<chmod file="${dist.dir}/rundemo" perm="ugo+rx" />
2007-01-12 06:35:01 +01:00
</target>
2013-06-26 02:21:03 +02:00
</project>