File: build.xml

package info (click to toggle)
librelaxng-datatype-java 1.0%2Bds1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 156 kB
  • sloc: java: 292; xml: 59; sh: 19; makefile: 2
file content (62 lines) | stat: -rw-r--r-- 1,640 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0"?>

<project name="relaxng" basedir="." default="dist">
	<property name="version" value="1.0"/>
	<property name="src.dir" location="src"/>
	<property name="build.dir" location="bin"/>
	<property name="doc.dir" location="doc"/>
	<property name="manifest.file" location="MANIFEST.MF"/>
	<property name="jarball" location="relaxngDatatype.jar"/>
	
	<target name="build">
		<tstamp/>
		
		<!-- compile Java source files -->
		<mkdir dir="${build.dir}"/>
		<javac
			srcdir="${src.dir}"
			destdir="${build.dir}"
			debug="off"
			optimize="on"
			encoding="ISO-8859-1"
			target="1.5"
			source="1.5"
			/>
		
		<!-- generate javadoc documentation -->
		<mkdir dir="${doc.dir}"/>
		<javadoc	locale="en_US"
					packagenames="org.relaxng.datatype.*"
					sourcepath="${src.dir}"
					destdir="${doc.dir}"
					windowtitle="RELAX NG Datatype Interface"
					public="yes"
					author="yes"
					source="1.5"
					>
		</javadoc>
	</target>
		
	<target name="dist" depends="build">
		<!-- create manifest file -->
		<echo file="${manifest.file}">Manifest-Version: 1.0

Name: org/relaxng/datatype
Implementation-Title: RELAX NG Datatype Interface
Implementation-Version: 1.0
Implementation-Vendor: relaxng.sourceforge.net</echo>
		
		<!-- standard archive -->
		<jar	jarfile="${jarball}"
				manifest="${manifest.file}">
			<fileset dir="${build.dir}" includes="**/*.class" />
		</jar>
	</target>

	<target name="clean">
		<delete dir="${build.dir}"/>
		<delete dir="${doc.dir}"/>
		<delete file="${manifest.file}"/>
		<delete file="${jarball}"/>
	</target>
</project>