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

Contents of /trunk/nl.nikhef.slcshttps/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1152 - (show annotations) (download) (as text)
Thu Nov 19 21:55:55 2009 UTC (12 years, 8 months ago) by msalle
File MIME type: application/xml+evoque
File size: 5429 byte(s)
Fixed missing IOException and fixed javadoc


1 <?xml version="1.0" encoding="UTF-8"?>
2 <project basedir="." default="release" name="slcshttps">
3
4 <!--
5 ! Properties
6 -->
7
8 <!-- Set output java version -->
9 <property name="javaversion" value="1.5"/>
10
11 <property name="bin" value="./bin"/>
12 <property name="doc" value="./doc"/>
13 <property name="src" value="./src"/>
14
15 <property name="version" value="0.1"/>
16 <property name="package" value="nl/nikhef/slcshttps"/>
17 <property name="packagename" value="nl.nikhef.slcshttps"/>
18
19
20 <!-- Set short version for the above java version -->
21 <condition property="javashort" value="14">
22 <equals arg1="${javaversion}" arg2="1.4"/>
23 </condition>
24 <condition property="javashort" value="15">
25 <equals arg1="${javaversion}" arg2="1.5"/>
26 </condition>
27 <condition property="javashort" value="16">
28 <equals arg1="${javaversion}" arg2="1.6"/>
29 </condition>
30
31 <!-- Set BouncyCastle provider -->
32 <!-- property name="bcprov" value="extern/bcprov-jdk${javashort}-143.jar"/-->
33 <property name="bcprov" value="extern/bcprov-jdk${javashort}-144.jar"/>
34
35 <!-- jarfile name contains the JVM short version -->
36 <property name="jar" value="${ant.project.name}_jdk${javashort}_v${version}.jar"/>
37
38 <!-- Set the correct BareBonesBrowserLaunch.java file to copy to the real one -->
39 <property name="BBBLdir" value="src/${package}/util/"/>
40 <!-- Note: both 1.5 and 1.6 use the .15 file -->
41 <condition property="BBBL"
42 value="${BBBLdir}BareBonesBrowserLaunch.java.14"
43 else= "${BBBLdir}BareBonesBrowserLaunch.java.15">
44 <equals arg1="${javaversion}" arg2="1.4"/>
45 </condition>
46
47 <!--
48 ! Path
49 -->
50 <path id="project.path">
51 <pathelement location="${bin}"/>
52 </path>
53
54 <!--
55 ! task to copy the correct browser java file
56 -->
57 <target name="updateBBBL">
58 <copy
59 file="${BBBL}" tofile="${BBBLdir}BareBonesBrowserLaunch.java"
60 overwrite="true" preservelastmodified="true" verbose="true" />
61 </target>
62
63 <!--
64 ! Release generation
65 -->
66 <target name="release" depends="build,javadoc">
67 </target>
68
69 <!--
70 ! Class file compilation
71 -->
72 <!-- <target name="compile" depends="updateBBBL">-->
73 <target name="compile">
74 <mkdir dir="${bin}"/>
75 <javac srcdir="${src}"
76 destdir="${bin}"
77 includes="**/*.java"
78 deprecation="yes"
79 source="${javaversion}"
80 target="${javaversion}"
81 >
82 <classpath>
83 <pathelement location="${bcprov}"/>
84 </classpath>
85 </javac>
86 </target>
87
88 <!--
89 ! Jar file creation
90 -->
91 <target name="build" depends="compile">
92 <jar destfile="${jar}" compress="true">
93 <fileset dir="bin">
94 <include name="**/*"/>
95 </fileset>
96 <manifest>
97 <!-- <attribute name="Name" value="${package}/"/>-->
98 <attribute name="Specification-Title" value="OnlineCA SLCS https classes"/>
99 <attribute name="Specification-Vendor" value="nikhef.nl"/>
100 <attribute name="Implementation-Vendor" value="nikhef.nl"/>
101 <attribute name="Main-Class" value="${package}/TestSURFCA"/>
102 <!-- note: multiple files should be space separated -->
103 <attribute name="Class-Path" value="${bcprov}"/>
104 </manifest>
105 </jar>
106 </target>
107
108 <!--
109 ! JavaDoc
110 -->
111 <target name="javadoc">
112 <mkdir dir="${doc}"/>
113 <javadoc use="Yes"
114 destdir="${doc}"
115 private="true"
116 version="true"
117 windowtitle="${ant.project.name}">
118 <classpath>
119 <pathelement location="${bcprov}"/>
120 </classpath>
121 <packageset dir="src" defaultexcludes="yes">
122 <include name="**"/>
123 </packageset>
124
125 <doctitle><![CDATA[<h1>${packagename}</h1>]]></doctitle>
126 <bottom><![CDATA[
127 <TABLE width="100%">
128 <TR><TD>${packagename}
129 <TD>Mischa Sall&eacute; - msalle(AT)nikhef.nl
130 </TR></TABLE>
131 ]]></bottom>
132
133 </javadoc>
134 </target>
135
136 <!--
137 ! Source zipfile
138 -->
139 <target name="zip">
140 <zip destfile="../${ant.project.name}_v${version}_src.zip"
141 basedir=".."
142 includes="nl.nikhef.slcshttps/src/** nl.nikhef.slcshttps/build.xml"
143 excludes="**/.*.swp nl.nikhef.slcshttps/NOTINZIP/"
144 />
145 </target>
146
147 <!--
148 ! Full zipfile
149 -->
150 <target name="fullzip" depends="release">
151 <zip destfile="../${ant.project.name}_v${version}_full.zip"
152 basedir=".."
153 includes="nl.nikhef.slcshttps/"
154 excludes="nl.nikhef.slcshttps/extern/bcprov* **/.*.swp nl.nikhef.slcshttps/NOTINZIP/"
155 />
156 </target>
157
158 <!--
159 ! Clean
160 -->
161 <target name="clean">
162 <delete includeemptydirs="true" failonerror="no" verbose="false">
163 <fileset dir="doc/"/>
164 <fileset dir="bin/" includes="**/*.class"/>
165 </delete>
166 </target>
167
168 <!--
169 ! Distclean
170 -->
171 <target name="distclean">
172 <delete includeemptydirs="true" failonerror="no" verbose="false">
173 <fileset dir="doc/"/>
174 <fileset dir="bin/"/>
175 <fileset dir="." includes="${ant.project.name}*.jar"/>
176 </delete>
177 </target>
178
179 <target name="run" depends="release">
180 <java classname="nl.nikhef.slcshttps.TestSURFCA" fork="yes">
181 <arg value="https://www.nikhef.nl/~msalle/cert/showcert.php?nohtml=1"/>
182 <classpath>
183 <pathelement location="${jar}"/>
184 </classpath>
185 </java>
186 </target>
187
188 </project>

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