/[pdpsoft]/trunk/nl.nikhef.jgridstart/build.xml
ViewVC logotype

Diff of /trunk/nl.nikhef.jgridstart/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 182 by wvengen, Tue Apr 7 12:27:04 2009 UTC revision 183 by wvengen, Tue Apr 7 13:10:39 2009 UTC
# Line 5  Line 5 
5          <!--          <!--
6            - Property definitions            - Property definitions
7            -->            -->
8          <property name="dir.src" location="src"/>          <!-- display name -->
         <property name="dir.build" location="bin"/>  
         <property name="dir.dist" location="deployment"/>  
         <property name="dir.thirdparty" location="thirdparty"/>  
   
9          <property name="target.title" value="jGridStart"/>          <property name="target.title" value="jGridStart"/>
10            <!-- internal name -->
11          <property name="target.name" value="${ant.project.name}"/>          <property name="target.name" value="${ant.project.name}"/>
12            <!-- the program's version -->
13          <property name="target.version" value="0.0.3"/>          <property name="target.version" value="0.0.3"/>
14            <!-- main class to execute -->
15          <property name="target.main" value="nl.nikhef.jgridstart.gui.Main"/>          <property name="target.main" value="nl.nikhef.jgridstart.gui.Main"/>
16            <!-- java virtual machine version to compile for -->
17          <property name="target.jvmversion" value="1.5"/>          <property name="target.jvmversion" value="1.5"/>
18                    
19            <!-- Java Web Start base url (for use in JNLP files) -->
20          <property name="wwwbase" value="http://www.nikhef.nl/~wvengen/jgridstart03/"/>          <property name="wwwbase" value="http://www.nikhef.nl/~wvengen/jgridstart03/"/>
21                    
22          <!-- property file defining 'keystore.file' and 'keystore.passwd' for signing -->          <!-- location of source files -->
23            <property name="dir.src" location="src"/>
24            <!-- location of compiled classes -->
25            <property name="dir.build" location="bin"/>
26            <!-- location of output files for deployment -->
27            <property name="dir.dist" location="deployment"/>
28            <!-- location of thirdparty libraries -->
29            <property name="dir.thirdparty" location="thirdparty"/>
30    
31            <!-- reference to property file defining the properties
32              -     keystore.file      java keystore file
33              -     keystore.passwd    password for accessing the java keystore
34              -     keystore.alias     alias pointing to certificate to sign with
35              -  if the property file cannot be found or does not define a keystore.file
36              -  that points to a file, a self-signed certificate is generated so you can
37              -  get started easily. For production, of course, you'll need your own
38              -  secure certificate that users can trust.
39              -  An example keystore.properties could be as follows:
40              -     keystore.file = ${dir.keystore}/keystore.ks
41              -     keystore.alias = default
42              -     keystore.passwd = mysecret
43              -->
44          <property name="dir.keystore" location=".."/>          <property name="dir.keystore" location=".."/>
45          <property file="${dir.keystore}/keystore.properties"/>          <property file="${dir.keystore}/keystore.properties"/>
46    
47                    
48          <!-- dependencies -->          <!-- dependencies -->
49          <property name="dep.bouncycastle" location="${dir.thirdparty}/bouncycastle/bcprov-jdk14-142.jar"/>          <property name="dep.bouncycastle" location="${dir.thirdparty}/bouncycastle/bcprov-jdk14-142.jar"/>
# Line 36  Line 59 
59          <!--          <!--
60            - Initialisation and other setup            - Initialisation and other setup
61            -->            -->
62    
63            <!-- keystore; create one if not supplied -->
64            <available file="${keystore.file}" type="file" property="keystore.available"/>
65            <target name="keystore" unless="keystore.available">
66                    <tempfile property="keystore.file" prefix="keystore" suffix=".ks"/>
67                    <property name="keystore.tempfile" value="${keystore.file}"/>
68                    <property name="keystore.alias" value="default"/>
69                    <property name="keystore.passwd" value="xyz12345"/>
70                    <genkey alias="${keystore.alias}" storepass="${keystore.passwd}" keystore="${keystore.file}"
71                            validity="1" dname="CN=Test, OU=Test, O=Test, C=Test"/>
72            </target>
73    
74            <!-- proguard -->
75          <taskdef resource="proguard/ant/task.properties"          <taskdef resource="proguard/ant/task.properties"
76                  classpath="${dir.thirdparty}/proguard/proguard.jar"/>                  classpath="${dir.thirdparty}/proguard/proguard.jar"/>
77                    
78            <!-- timestamp -->
79          <target name="init">          <target name="init">
80                  <tstamp/>                  <tstamp/>
81          </target>          </target>
# Line 65  Line 102 
102          <!--          <!--
103            - Distribution creation target            - Distribution creation target
104            -->            -->
105          <target name="dist" depends="compile">          <target name="dist" depends="compile,keystore">
106                  <!-- pack into jar -->                  <!-- pack into jar -->
107                  <jar jarfile="${dir.dist}/${target.name}.large.jar">                  <jar jarfile="${dir.dist}/${target.name}.large.jar">
108                          <manifest>                          <manifest>
# Line 92  Line 129 
129                  <delete file="${dir.dist}/${target.name}.large.jar"/>                  <delete file="${dir.dist}/${target.name}.large.jar"/>
130                  <!-- sign it, required for java web start -->                  <!-- sign it, required for java web start -->
131                  <signjar keystore="${keystore.file}" jar="${dir.dist}/${target.name}.jar"                  <signjar keystore="${keystore.file}" jar="${dir.dist}/${target.name}.jar"
132                          alias="${target.name}" storepass="${keystore.passwd}"/>                          alias="${keystore.alias}" storepass="${keystore.passwd}"/>
133                    <delete file="${keystore.tempfile}" quiet="true"/>
134                  <!-- substitute variables in java web start files -->                  <!-- substitute variables in java web start files -->
135                  <copy file="${dir.dist}/${target.name}.jnlp.in" tofile="${dir.dist}/${target.name}.jnlp" />                  <copy file="${dir.dist}/${target.name}.jnlp.in" tofile="${dir.dist}/${target.name}.jnlp" />
136                  <copy file="${dir.dist}/bcprov.jnlp.in" tofile="${dir.dist}/bcprov.jnlp" />                  <copy file="${dir.dist}/bcprov.jnlp.in" tofile="${dir.dist}/bcprov.jnlp" />

Legend:
Removed from v.182  
changed lines
  Added in v.183

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28