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

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