xidyn/build.xml

40 lines
No EOL
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="main" name="Build">
<!-- ***** Import ***** -->
<import file="build-libjar.xml" />
<!-- ***** Main ***** -->
<target name="main" description="" depends="dist,clean"/>
<!-- ***** Define demo properties ***** -->
<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}"/>
<pathelement path="${build.classes}"/>
<pathelement path="${build.classpath}"/>
</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"/>
</javac>
</target>
<!-- ***** Run demo ***** -->
<target name="demo" description="Run demo" depends="clear,compile,compile-demo">
<java classname="XidynDemo" maxmemory="20m" fork="true">
<classpath refid="demo.classpath.run" />
</java>
<delete dir="${build.dir}" />
</target>
</project>