summaryrefslogtreecommitdiff
blob: 054bafeee2b99bd3573d89e7b443675609feab7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Only in iso-relax-20050331: build
diff -ru iso-relax-20050331-orig/build.xml iso-relax-20050331/build.xml
--- iso-relax-20050331-orig/build.xml	2006-01-17 21:56:42.000000000 -0500
+++ iso-relax-20050331/build.xml	2006-01-17 22:06:20.000000000 -0500
@@ -1,17 +1,47 @@
 <?xml version="1.0"?>
 <project name="ISORELAX" basedir="." default="release">
 
+	<property name="build" value="build"/>
+	<property name="src" value="src"/>
+	<property name="javadocs" value="docs/api"/>
+
+	<target name="init">
+		<mkdir dir="${build}"/>
+		<mkdir dir="${build}"/>
+	</target>
+
+	<target name="compile" depends="init">
+		<javac srcdir="${src}" debug="true" destdir="${build}"/>
+	</target>
+
+	<target name="javadoc" depends="init">
+		<javadoc sourcepath="${src}" destdir="${javadocs}" packagenames="*">
+		</javadoc>
+	</target>
+	
+	<target name="jar" depends="compile">
+		<jar jarfile="isorelax.jar" compress="false">
+			<fileset dir="${build}" />
+			<fileset dir="" includes="COPYING.txt"/>
+			<!-- resource files -->
+			<fileset dir="${src}">
+				<patternset>
+					<include name="**/*.properties" />
+					<include name="**/*.rxm"/>
+					<include name="**/*.dtd"/>
+					<include name="**/*.rng"/>
+					<include name="**/*.mod"/>
+				</patternset>
+			</fileset>
+		</jar>
+	</target>
+
 	<!-- create a distribution package -->
-	<target name="release">
+	<target name="release" depends="jar">
 		<tstamp />
 		
 		<!-- compile files -->
 		<mkdir dir="temp" />
-		<javac srcdir="src" debug="true" destdir="temp">
-			<classpath>
-				<fileset dir="lib" includes="*.jar" />
-			</classpath>
-		</javac>
 		
 		<!-- create a time stamp file -->
 		<echo file="temp/version.properties">version=${DSTAMP}</echo>
@@ -30,24 +60,7 @@
 			</fileset>
 		</zip>
 		
-		<!-- creates binary jar -->
-		<delete file="isorelax.jar"/>
-		<jar	jarfile="isorelax.jar"
-				compress="false">
-			<fileset dir="temp" />
-			<fileset dir="" includes="COPYING.txt"/>
-			<!-- resource files -->
-			<fileset dir="src">
-				<patternset>
-					<include name="**/*.properties" />
-					<include name="**/*.rxm"/>
-					<include name="**/*.dtd"/>
-					<include name="**/*.rng"/>
-					<include name="**/*.mod"/>
-				</patternset>
-			</fileset>
-		</jar>
-		<delete dir="temp" />
+		<delete dir="${build}" />
 		
 		<zip zipfile="isorelax.${DSTAMP}.zip" compress="true">
 			<fileset dir="." includes="isorelax.jar src.zip COPYING.txt"/>
Only in iso-relax-20050331: .build.xml.swp
Only in iso-relax-20050331: docs
Only in iso-relax-20050331: isorelax.jar