aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorendolf <[email protected]>2003-08-06 17:49:43 +0000
committerendolf <[email protected]>2003-08-06 17:49:43 +0000
commitf6211c23ed7c742db5ae961ab2c36f1c22edef40 (patch)
tree06f202eab03728f73ccbc33e2b0e71f409d115cc /build.xml
parent71e36a2d506cac306003b5c95282412d9c77631c (diff)
Added dist target
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@39 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml21
1 files changed, 20 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 51ca800..021dde1 100644
--- a/build.xml
+++ b/build.xml
@@ -71,7 +71,26 @@
<ant dir="plugins/DX8" target="clean"/>
<ant dir="plugins/linux" target="clean"/>
<ant dir="coreAPI" target="clean"/>
+ <delete failonerror="no">
+ <fileset dir="dist">
+ <include name="**/*"/>
+ </fileset>
+ </delete>
</target>
-
+ <target name="dist" depends="init,compile" description="Build the distribution file for this system">
+ <mkdir dir="dist"/>
+ <mkdir dir="dist/controller"/>
+ <copy file="coreAPI/bin/jinput.jar" todir="dist"/>
+ <copy file="coreAPI/lib/jutils.jar" todir="dist"/>
+ <copy todir="dist/controller">
+ <fileset dir="coreAPI/src/tests/controller/">
+ <include name="**/*"/>
+ </fileset>
+ </copy>
+ <zip destfile="dist/jinput_${os.name}_dist.zip"
+ basedir="dist"
+ excludes="*.zip"
+ />
+ </target>
</project>