Build RoboDJ chooser as a JNLP app.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@914 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-11-11 17:23:57 +00:00
parent 9119c5e423
commit 5e802a2f3e
5 changed files with 99 additions and 11 deletions
+20
View File
@@ -0,0 +1,20 @@
#
# $Id: build.properties,v 1.1 2002/11/11 17:23:57 mdb Exp $
#
# Build configuration for the RoboDJ client application.
#
# the URI at which the application is canonically available
application_uri = http://www.samskivert.com/code/robodj
# the jar file keystore
sign.keystore = lib/keystore.dat
# the keystore password
sign.storepass = weasel
# the alias to use when signing the jar files
sign.alias = myself
# the host on which the music daemon is running
musicd_host = depravity
+38 -11
View File
@@ -1,23 +1,31 @@
<!-- build configuration -->
<project name="robodj" default="compile" basedir=".">
<!-- import properties -->
<property file="build.properties"/>
<!-- things you may want to change -->
<property name="app.name" value="robodj"/>
<property name="app.name" value="robodj"/>
<property name="build.compiler" value="jikes"/>
<property name="web.home" value="/export/samskivert/pages/code"/>
<property name="install.dir" value="${web.home}/${app.name}"/>
<!-- we want to access the environment -->
<property environment="env"/>
<property name="java.libraries" value="${env.JAVA_LIBS}"/>
<!-- things you probably don't want to change -->
<property name="src.dir" value="src/java"/>
<property name="deploy.dir" value="dist"/>
<property name="dist.jar" value="${app.name}.jar"/>
<property name="javadoc.dir" value="${deploy.dir}/docs"/>
<property name="doc.packages" value="robodj.*"/>
<property name="doc.overview" value="robodj/overview.html"/>
<property name="copyright.holder" value="Michael Bayne"/>
<property name="build.compiler" value="jikes"/>
<property name="java.libraries" value="/usr/share/java"/>
<!-- things you probably don't want to change -->
<property name="src.dir" value="src/java"/>
<property name="deploy.dir" value="dist"/>
<property name="dist.jar" value="${app.name}.jar"/>
<property name="javadoc.dir" value="${deploy.dir}/docs"/>
<!-- declare our classpath -->
<path id="classpath">
<fileset dir="${java.libraries}" includes="**/*.jar"/>
<fileset dir="${java.libraries}" includesfile="lib/CLIENT_LIBS"/>
<fileset dir="lib" includes="**/*.jar"/>
<pathelement location="${deploy.dir}/classes"/>
</path>
@@ -33,7 +41,7 @@
<fileset dir="${src.dir}" includes="**/*.png"/>
</copy>
<copy todir="${deploy.dir}/classes/conf">
<fileset dir="conf"/>
<fileset dir="conf" includes="**/*.properties"/>
</copy>
</target>
@@ -74,4 +82,23 @@
basedir="${deploy.dir}/classes"/>
</target>
<!-- installs the JWS app -->
<target name="install">
<mkdir dir="${install.dir}"/>
<!-- copy the jar files used by the client -->
<copy todir="${install.dir}">
<fileset dir="${java.libraries}" includesfile="lib/CLIENT_LIBS"/>
<fileset dir="dist" includes="*.jar"/>
</copy>
<!-- sign the jar files -->
<signjar keystore="${sign.keystore}" alias="${sign.alias}"
storepass="${sign.storepass}" lazy="true">
<fileset dir="${install.dir}" includes="*.jar"/>
</signjar>
<!-- copy the jnlp file(s) into place -->
<filter filtersfile="build.properties"/>
<copy todir="${install.dir}" filtering="true">
<fileset dir="etc" includes="**/*.jnlp"/>
</copy>
</target>
</project>
+37
View File
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for RoboDJ music chooser -->
<!-- If you're seeing this in your web browser, you probably need to
download and install the Sun JRE 1.4 and/or Java Web Start from
http://java.sun.com/j2se/ -->
<jnlp spec="1.0+" codebase="@application_uri@" href="game.jnlp">
<information>
<title>RoboDJ Chooser</title>
<vendor>Seuss and Asseusciates</vendor>
<homepage href="index.html"/>
<icon href="icon.png"/>
<description kind="short">
Music choosing fun for the whole family!
</description>
<description>
Provides a browser for the RoboDJ music repository and an interface
by which that music can be queued up for playing on the music
server.
</description>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4.0" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="commons-io.jar"/>
<jar href="commons-lang.jar"/>
<jar href="mm.mysql-2.0.14-bin.jar"/>
<jar href="samskivert.jar"/>
<jar href="robodj.jar"/>
<property name="musicd_host" value="@musicd_host@"/>
</resources>
<application-desc main-class="robodj.chooser.Chooser"/>
</jnlp>
+4
View File
@@ -0,0 +1,4 @@
commons-io.jar
commons-lang.jar
mm.mysql-2.0.14-bin.jar
samskivert.jar
Binary file not shown.