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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 178 - (hide annotations) (download)
Tue Apr 7 11:19:08 2009 UTC (13 years, 5 months ago) by wvengen
File MIME type: text/plain
File size: 4062 byte(s)
initial import
1 wvengen 178 <?xml version="1.0" encoding="utf-8"?>
2     <project name="jgridstart" default="compile">
3     <description>jGridStart build file</description>
4    
5     <!-- TODO copy bcprov to deployment in dist and remove in clean -->
6    
7     <!--
8     - Property definitions
9     -->
10     <property name="dir.src" location="src"/>
11     <property name="dir.build" location="bin"/>
12     <property name="dir.dist" location="deployment"/>
13     <property name="dir.thirdparty" location="thirdparty"/>
14    
15     <property name="target.title" value="jGridStart"/>
16     <property name="target.name" value="${ant.project.name}"/>
17     <property name="target.version" value="0.0.3"/>
18     <property name="target.main" value="nl.nikhef.jgridstart.gui.Main"/>
19     <property name="target.jvmversion" value="1.5"/>
20    
21     <property name="wwwbase" value="http://www.nikhef.nl/~wvengen/jgridstart03/"/>
22    
23     <!-- property file defining 'keystore.file' and 'keystore.passwd' for signing -->
24     <property name="dir.keystore" location=".."/>
25     <property file="${dir.keystore}/keystore.properties"/>
26    
27     <!-- dependencies -->
28     <property name="dep.bouncycastle" location="${dir.thirdparty}/bouncycastle/bcprov-jdk14-142.jar"/>
29     <property name="dep.cli" location="${dir.thirdparty}/commons-cli/commons-cli-1.2.jar"/>
30     <path id="path.dependencies">
31     <!-- TODO use jdk13 library versions and test -->
32     <pathelement location="${dep.bouncycastle}"/>
33     <pathelement location="${dep.cli}"/>
34     </path>
35    
36     <!--
37     - Initialisation and other setup
38     -->
39     <taskdef resource="proguard/ant/task.properties"
40     classpath="${dir.thirdparty}/proguard/proguard.jar"/>
41    
42     <target name="init">
43     <tstamp/>
44     </target>
45    
46     <!--
47     - Compilation target
48     -->
49     <target name="compile" depends="init">
50     <mkdir dir="${dir.build}"/>
51     <!-- compile java sources -->
52     <javac srcdir="${dir.src}" destdir="${dir.build}" target="${target.jvmversion}">
53     <classpath refid="path.dependencies" />
54     </javac>
55     <!-- and copy resources; skip VCS dirs (and other hidden .*) -->
56     <copy todir="${dir.build}">
57     <fileset dir="${dir.src}">
58     <exclude name="**/*.java"/>
59     <exclude name="**/CVS"/>
60     <exclude name="**/.*"/>
61     </fileset>
62     </copy>
63     </target>
64    
65     <!--
66     - Distribution creation target
67     -->
68     <target name="dist" depends="compile">
69     <!-- pack into jar -->
70     <jar jarfile="${dir.dist}/${target.name}.large.jar">
71     <manifest>
72     <attribute name="Built-By" value="${user.name}"/>
73     <attribute name="Main-Class" value="${target.main}"/>
74     </manifest>
75     <fileset dir="${dir.build}"/>
76     <zipfileset src="${dep.cli}" excludes="META-INF/**"/>
77     </jar>
78     <!-- minimize jar file; skipnonpubliclibraryclasses needed for java1.6 -->
79     <proguard obfuscate="false" skipnonpubliclibraryclasses="false">
80     <injar file="${dir.dist}/${target.name}.large.jar"/>
81     <outjar file="${dir.dist}/${target.name}.jar"/>
82     <libraryjar file="${java.home}/lib/rt.jar"/>
83     <libraryjar file="${dep.bouncycastle}"/>
84     <keepclasseswithmembers access="public">
85     <method access="public static" type="void"
86     name="main" parameters="java.lang.String[]"/>
87     </keepclasseswithmembers>
88     </proguard>
89     <delete file="${dir.dist}/${target.name}.large.jar"/>
90     <!-- sign it, required for java web start -->
91     <signjar keystore="${keystore.file}" jar="${dir.dist}/${target.name}.jar"
92     alias="${target.name}" storepass="${keystore.passwd}"/>
93     <!-- substitute variables in java web start files -->
94     <copy file="${dir.dist}/${target.name}.jnlp.in" tofile="${dir.dist}/${target.name}.jnlp" />
95     <copy file="${dir.dist}/bcprov.jnlp.in" tofile="${dir.dist}/bcprov.jnlp" />
96     <replace dir="${dir.dist}">
97     <include name="${target.name}.jnlp"/>
98     <include name="bcprov.jnlp"/>
99     <replacefilter token="@wwwbase@" value="${wwwbase}"/>
100     <replacefilter token="@main@" value="${target.main}"/>
101     </replace>
102     </target>
103     <target name="jar" depends="dist"/>
104    
105     <!--
106     - Cleaning target
107     -->
108     <target name="clean">
109     <delete dir="${dir.build}"/>
110     <delete file="${dir.dist}/${target.name}.jar"/>
111     <delete file="${dir.dist}/${target.name}.jnlp"/>
112     <delete file="${dir.dist}/bcprov.jnlp"/>
113     </target>
114    
115     </project>

Properties

Name Value
svn:mime-type text/plain

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