49 lines
No EOL
1.5 KiB
XML
49 lines
No EOL
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<project default="dist2" name="Xidyn">
|
|
<!-- -->
|
|
<import file="jarbuild.xml" />
|
|
|
|
<!-- -->
|
|
<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"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<!-- ***** Demo ***** -->
|
|
<target name="demo" description="Run demo" depends="clean,compile,compile-demo">
|
|
<java classname="XidynDemo" maxmemory="20m" fork="true">
|
|
<classpath refid="demo.classpath.run" />
|
|
</java>
|
|
</target>
|
|
|
|
|
|
<!-- -->
|
|
<target name="dist2" description="Build distribution" depends="dist,compile-demo">
|
|
<!-- 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}" />
|
|
<fileset dir="resources" />
|
|
</jar>
|
|
<copy file="rundemo" todir="${dist.dir}/" overwrite="true" />
|
|
<chmod file="${dist.dir}/" perm="ugo+rx" />
|
|
</target>
|
|
</project> |