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

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