1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="default-task" name="jnlp">
<description>
A testbed for getting JRuby to work with web start.
</description>
<!-- First try to load machine-specific properties. -->
<property file="build.properties"/>
<!-- And then load the defaults. It seems backwards to set defaults AFTER
setting local overrides, but that's how Ant works. -->
<property file="default.build.properties"/>
<condition property="jnlp-sample-keystore.exists">
<available file="jnlp-sample-keystore"/>
</condition>
<target name="generate-keystore" unless="jnlp-sample-keystore.exists">
<genkey alias="jnlp-sample-keystore" keystore="jnlp-sample-keystore" storepass="jnlp-sample-keystore" keypass="jnlp-sample-keystore">
<dname>
<param name="CN" value="JRuby"/>
<param name="OU" value="JRuby"/>
<param name="O" value="jruby.org"/>
<param name="C" value="US"/>
</dname>
</genkey>
</target>
<target name="clean" description="delete signed-jars and jnlp-sample-keystore">
<delete file="jnlp-sample-keystore"/>
<delete dir="jars"/>
<delete dir="signed-jars"/>
</target>
<target name="copy-jars" description="copy selected jars to the jars directory">
<copy file="../../lib/jruby-console.jar" todir="jars" />
</target>
<target name="sign-jars" depends="copy-jars, generate-keystore">
<mkdir dir="signed-jars"/>
<signjar destDir="signed-jars"
keystore="${keystore}"
storepass="${storepass}"
keypass="${keypass}"
alias="${alias}"
lazy="false"
preservelastmodified="true">
<path>
<fileset dir="jars" includes="*.jar" />
</path>
<flattenmapper />
</signjar>
</target>
<target name="default-task" depends="sign-jars">
<echo>
Testing the jnlp samples:
javaws jirb.jnlp
javaws signed-jirb.jnlp
</echo>
</target>
</project>
|