Updates for webstart scripts

This commit is contained in:
endolf 2006-10-29 20:10:15 +00:00
parent e2d5fc8e24
commit 8af1163d0c
2 changed files with 41 additions and 1 deletions

View file

@ -86,7 +86,7 @@
<target name="dist" depends="init" description="Build the distribution file for this system">
<iterate target="all"/>
<mkdir dir="dist"/>
<jar jarfile="dist/jinput.jar" compress="true">
<jar jarfile="dist/jinput.jar" compress="true" duplicate="preserve">
<fileset dir="coreAPI/classes">
<include name="**/*.class"/>
<exclude name="**/test/*.class"/>

40
webstart/build.xml Normal file
View file

@ -0,0 +1,40 @@
<?xml version="1.0"?>
<project name="JInput webstart" basedir="." default="webstart">
<target name="webstart" depends="clean,sign">
</target>
<target name="clean">
<delete dir="dist" failonerror="true"/>
</target>
<target name="init">
<mkdir dir="dist"/>
</target>
<target name="buildnatives" depends="init">
<jar destfile="dist/jinput-windows-native.jar"
basedir="../dist/" includes="jinput-dx8.dll, jinput-raw.dll, jinput-wintab.dll"/>
<jar destfile="dist/jinput-linux-native.jar"
basedir="../dist/" includes="libjinput-linux.so"/>
<jar destfile="dist/jinput-osx-native.jar"
basedir="../dist/" includes="libjinput-osx.jnilib"/>
</target>
<target name="sign" depends="buildnatives">
<copy todir="dist" file="../dist/jinput.jar" />
<copy todir="dist" file="../dist/jinput-test.jar" />
<copy todir="dist" file="jinput.jnlp"/>
<copy todir="dist" file="jinput-wintab.jnlp"/>
<input message="Input keystore alias: " addproperty="keystoreAlias"/>
<input message="Input keystore password: " addproperty="keystorePassword"/>
<signjar alias="${keystoreAlias}" keystore="myKeyStore" storepass="${keystorePassword}" verbose="true">
<fileset dir="dist">
<include name="**/*.jar"/>
</fileset>
</signjar>
</target>
</project>