/[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 1221 - (show annotations) (download) (as text)
Wed Dec 2 21:34:10 2009 UTC (12 years, 9 months ago) by msalle
File MIME type: application/xml+evoque
File size: 4862 byte(s)
- Added support for nl.nikhef.slcshttps.acknowledge property for PKCS12Https
  stdio communicator
- Updated some 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 link="${apiLink}"
102 windowtitle="${ant.project.name}">
103 <classpath>
104 <pathelement location="${bcprov}"/>
105 </classpath>
106 <packageset dir="src" defaultexcludes="yes">
107 <include name="**"/>
108 </packageset>
109
110 <doctitle><![CDATA[<h1>${packagename}</h1>]]></doctitle>
111 <bottom><![CDATA[
112 <TABLE width="100%">
113 <TR><TD>${packagename}
114 <TD>Mischa Sall&eacute; - msalle(AT)nikhef.nl
115 </TR></TABLE>
116 ]]></bottom>
117
118 </javadoc>
119 </target>
120
121 <!--
122 ! Source zipfile
123 -->
124 <target name="zip">
125 <zip destfile="../${ant.project.name}_v${version}_src.zip"
126 basedir=".."
127 includes="nl.nikhef.slcshttps/src/** nl.nikhef.slcshttps/build.xml"
128 excludes="**/.*.swp nl.nikhef.slcshttps/NOTINZIP/"
129 />
130 </target>
131
132 <!--
133 ! Full zipfile
134 -->
135 <target name="fullzip" depends="release">
136 <zip destfile="../${ant.project.name}_v${version}_full.zip"
137 basedir=".."
138 includes="nl.nikhef.slcshttps/"
139 excludes="nl.nikhef.slcshttps/extern/bcprov* **/.*.swp nl.nikhef.slcshttps/NOTINZIP/"
140 />
141 </target>
142
143 <!--
144 ! Clean
145 -->
146 <target name="clean">
147 <delete includeemptydirs="true" failonerror="no" verbose="false">
148 <fileset dir="doc/"/>
149 <fileset dir="bin/" includes="**/*.class"/>
150 </delete>
151 </target>
152
153 <!--
154 ! Distclean
155 -->
156 <target name="distclean">
157 <delete includeemptydirs="true" failonerror="no" verbose="false">
158 <fileset dir="doc/"/>
159 <fileset dir="bin/"/>
160 <fileset dir="." includes="${ant.project.name}*.jar"/>
161 </delete>
162 </target>
163
164 <target name="run" depends="release">
165 <java classname="nl.nikhef.slcshttps.TestSURFCA" fork="yes">
166 <arg value="https://www.nikhef.nl/~msalle/cert/showcert.php?nohtml=1"/>
167 <classpath>
168 <pathelement location="${jar}"/>
169 </classpath>
170 </java>
171 </target>
172
173 </project>

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