Permalink
Browse files

added webstart stuff

1 parent d75d4b2 commit 72a8b2f1b0866df5644af05a3075c9aa409af0e1 @krka committed May 4, 2010
Showing with 74 additions and 0 deletions.
  1. BIN kahlua.keystore
  2. +51 −0 webstart.xml
  3. +1 −0 webstart/MANIFEST.MF
  4. +22 −0 webstart/kahlua2.jnlp
View
Binary file not shown.
View
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+
+<project name="webstart" default="build-webstart" basedir=".">
+
+ <dirname property="baseDir" file="${ant.file}"/>
+
+ <property name="deploy.dir" location="${baseDir}/webstart"/>
+
+ <property name="webstart.build.dir" value="${baseDir}/bin/webstart/build"/>
+ <property name="webstart.jar.name" value="kahlua2demo.jar"/>
+
+
+ <property name="libs.dir" value="${webstart.build.dir}"/>
+
+ <path id="dist.classpath">
+ <fileset dir="${libs.dir}" includes="**/*.jar, **/*.zip" />
+ </path>
+
+ <property name="password" value="9agd97atwd97tawd89raw" />
+ <target name="generate-key">
+ <genkey keystore="kahlua.keystore" alias="kahlua2" storepass="${password}"
+ dname="CN=Kahlua,L=Stockholm,O=Kahlua,C=SE">
+ </genkey>
+ </target>
+
+ <property name="webstart.signed.dir" value="${baseDir}/bin/webstart/signed"/>
+ <target name="build-webstart">
+ <mkdir dir="${webstart.build.dir}"/>
+
+ <manifestclasspath taskname="setup-manifest" property="dist.manifest.classpath" jarfile="${webstart.build.dir}/${webstart.jar.name}">
+ <classpath refid="dist.classpath" />
+ </manifestclasspath>
+ <jar destfile="${webstart.build.dir}/${webstart.jar.name}" manifest="${deploy.dir}/MANIFEST.MF">
+ <fileset dir="${baseDir}/bin/classes/core" />
+ <fileset dir="${baseDir}/bin/classes/j2se" />
+ <zipfileset src="${baseDir}/lib/jsyntaxpane-0.9.5.jar" prefix="" />
+ <manifest>
+ <attribute name="Class-Path" value="${dist.manifest.classpath}"/>
+ </manifest>
+ </jar>
+
+ <mkdir dir="${webstart.signed.dir}"/>
+ <signjar destDir="${webstart.signed.dir}" alias="kahlua2" keystore="kahlua.keystore" storepass="${password}">
+ <path>
+ <fileset dir="${webstart.build.dir}" includes="**/*.jar"/>
+ </path>
+ <flattenmapper/>
+ </signjar>
+ <copy todir="${webstart.signed.dir}" file="${deploy.dir}/kahlua2.jnlp" />
+ </target>
+</project>
View
@@ -0,0 +1 @@
+Main-Class: se.krka.kahlua.j2se.interpreter.InteractiveShell
View
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jnlp spec="1.0+"
+ codebase="http://github.com/downloads/krka/kahlua2/"
+ href="kahlua2.jnlp">
+
+ <information>
+ <title>Kahlua</title>
+ <vendor>Kahlua</vendor>
+ <homepage href="http://code.google.com/p/kahlua"/>
+ <description kind="short">Kahlua is a Lua implementation in Java</description>
+ <description kind="tooltip">Kahlua</description>
+ <icon href="icon.png"/>
+ </information>
+ <security>
+ <all-permissions/>
+ </security>
+ <resources>
+ <jar href="kahlua2demo.jar"/>
+ </resources>
+
+ <application-desc main-class="se.krka.kahlua.j2se.interpreter.InteractiveShell"/>
+</jnlp>

0 comments on commit 72a8b2f

Please sign in to comment.