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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1331 - (hide annotations) (download) (as text)
Mon Jan 4 11:47:42 2010 UTC (12 years, 4 months ago) by msalle
File MIME type: application/xml+evoque
File size: 5047 byte(s)
- expiretimewarning has to be positive to prevent problems... negative now will
  become 0
- update version to 0.2


1 msalle 638 <?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 msalle 651 <property name="javaversion" value="1.5"/>
10 msalle 638
11     <property name="bin" value="./bin"/>
12     <property name="doc" value="./doc"/>
13     <property name="src" value="./src"/>
14    
15 msalle 1331 <property name="version" value="0.2"/>
16 msalle 638 <property name="package" value="nl/nikhef/slcshttps"/>
17 msalle 639 <property name="packagename" value="nl.nikhef.slcshttps"/>
18 msalle 638
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 msalle 1149 <property name="bcprov" value="extern/bcprov-jdk${javashort}-144.jar"/>
29 msalle 638
30     <!-- jarfile name contains the JVM short version -->
31     <property name="jar" value="${ant.project.name}_jdk${javashort}_v${version}.jar"/>
32    
33 msalle 1221 <!-- 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 msalle 638 </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 msalle 1152 <!-- <target name="compile" depends="updateBBBL">-->
57     <target name="compile">
58 msalle 638 <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 msalle 1308 <javadoc destdir="${doc}"
98 msalle 638 private="true"
99     version="true"
100     windowtitle="${ant.project.name}">
101 msalle 1308 <package name="nl.nikhef.slcshttps.*"/>
102 msalle 1234 <link href="${apiLink}"/>
103     <link href="http://www.bouncycastle.org/docs/docs1.6/"/>
104 msalle 1308 <sourcepath>
105     <pathelement location="src"/>
106     <!--pathelement location="/home/salle/jdk/"/-->
107     <!--pathelement location="/home/salle/jdk-ce3fde68c495/src/share/classes/"/-->
108     </sourcepath>
109 msalle 638 <classpath>
110     <pathelement location="${bcprov}"/>
111     </classpath>
112    
113 msalle 639 <doctitle><![CDATA[<h1>${packagename}</h1>]]></doctitle>
114     <bottom><![CDATA[
115     <TABLE width="100%">
116     <TR><TD>${packagename}
117     <TD>Mischa Sall&eacute; - msalle(AT)nikhef.nl
118     </TR></TABLE>
119     ]]></bottom>
120 msalle 638
121     </javadoc>
122     </target>
123    
124     <!--
125     ! Source zipfile
126     -->
127     <target name="zip">
128     <zip destfile="../${ant.project.name}_v${version}_src.zip"
129     basedir=".."
130 msalle 645 includes="nl.nikhef.slcshttps/src/** nl.nikhef.slcshttps/build.xml"
131 msalle 1054 excludes="**/.*.swp nl.nikhef.slcshttps/NOTINZIP/"
132 msalle 638 />
133     </target>
134    
135     <!--
136     ! Full zipfile
137     -->
138     <target name="fullzip" depends="release">
139     <zip destfile="../${ant.project.name}_v${version}_full.zip"
140     basedir=".."
141 msalle 645 includes="nl.nikhef.slcshttps/"
142 msalle 1054 excludes="nl.nikhef.slcshttps/extern/bcprov* **/.*.swp nl.nikhef.slcshttps/NOTINZIP/"
143 msalle 638 />
144     </target>
145    
146     <!--
147     ! Clean
148     -->
149     <target name="clean">
150     <delete includeemptydirs="true" failonerror="no" verbose="false">
151     <fileset dir="doc/"/>
152     <fileset dir="bin/" includes="**/*.class"/>
153     </delete>
154     </target>
155    
156     <!--
157     ! Distclean
158     -->
159     <target name="distclean">
160     <delete includeemptydirs="true" failonerror="no" verbose="false">
161     <fileset dir="doc/"/>
162     <fileset dir="bin/"/>
163     <fileset dir="." includes="${ant.project.name}*.jar"/>
164     </delete>
165     </target>
166    
167     <target name="run" depends="release">
168     <java classname="nl.nikhef.slcshttps.TestSURFCA" fork="yes">
169     <arg value="https://www.nikhef.nl/~msalle/cert/showcert.php?nohtml=1"/>
170     <classpath>
171     <pathelement location="${jar}"/>
172     </classpath>
173     </java>
174     </target>
175    
176     </project>

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