- renamed to java-cryptix.spec
[packages/cryptix.git] / cryptix.build.xml
1 <!-- simple generic build file -->
2
3 <project name="cryptix" default="all" basedir=".">
4
5   <!-- Properties -->
6
7   <property name="name" value="cryptix"/>
8   <property name="src" value="src"/>
9   <property name="build" value="build"/>
10   <property name="build.classes" value="${build}/classes"/>
11   <property name="build.doc" value="${build}/api"/>
12   <property name="build.lib" value="${build}/lib"/>
13   <property name="packagenames" value="cryptix.*,xjava.*,netscape.security.*"/>
14
15   <!-- Targets -->
16
17   <!-- Prepare build directories -->
18   <target name="prepare">
19     <mkdir dir="${build}"/>
20     <mkdir dir="${build.classes}"/>
21     <mkdir dir="${build.lib}"/>
22     <mkdir dir="${build.doc}"/>
23   </target>
24
25   <!-- Kill all the created directories -->
26   <target name="clean">
27     <delete dir="${build}"/>
28   </target>
29
30   <!-- Build classes -->
31   <target name="classes" depends="prepare">
32     <javac srcdir="${src}" destdir="${build.classes}" debug="off" optimize="on"/>
33     <copy todir="${build.classes}">
34       <fileset dir="${src}">
35         <include name="**/*.properties"/>
36       </fileset>
37     </copy>
38   </target>
39
40   <!-- Build jar archives -->
41   <target name="jar" depends="classes">
42     <jar jarfile="${build.lib}/${name}.jar" basedir="${build.classes}"/>
43   </target>
44
45   <!-- Build the full JavaDocs -->
46   <target name="javadoc" depends="prepare">
47     <javadoc sourcepath="${src}"
48             destdir="${build.doc}"
49             doctitle="${name} JavaDoc"
50             windowtitle="${name} JavaDoc"
51             package="true"
52             author="true"
53             version="true"
54             packagenames="${packagenames}"
55     />
56   </target>
57
58   <!-- Build everything -->
59   <target name="all" depends="jar,javadoc"/>
60
61 </project>
This page took 0.060971 seconds and 3 git commands to generate.