File: build.xml

package info (click to toggle)
cronometer 0.9.9+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 8,748 kB
  • sloc: java: 17,382; xml: 909; makefile: 19; sh: 18
file content (73 lines) | stat: -rw-r--r-- 2,266 bytes parent folder | download
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
<project name="CRONOMETER" default="cronometer.jar" basedir=".">

	<description>
		Builds the CRONOMETER App
	</description>

	<!-- set global properties for this build -->
	<property name="name"  value="CRON-O-METER"/>
	<property name="source" location="src/"/>
	<property name="build" location="bin"/>
	<property name="lib" location="lib"/> 
	 
        <!-- Not needed in Debian
	<taskdef name="launch4j"
		    classname="net.sf.launch4j.ant.Launch4jTask"
		    classpath="C:/Program Files/Launch4j/launch4j.jar
		        :C:/Program Files/Launch4j/lib/xstream.jar" />
	
	 <taskdef name="exe4j"
	               classname="com.exe4j.Exe4JTask"
	               classpath="C:\Program Files\exe4j\bin\ant.jar"/> 
        -->
	                
	<!-- Compile the java code from ${src} into ${build} -->
	<target name="compile" description="compile the source">
		<javac source="1.4" srcdir="${source}" destdir="${build}" encoding="ISO-8859-1">
			<classpath>
				<fileset dir="${build}/lib">
					<include name="*.jar"/>
				</fileset>
			</classpath>
		</javac>
	</target>

	<target name="docs.jar" description="create the documentation jar file" >
		<jar jarfile="lib/docs.jar" compress="true">
			<fileset dir="docs">
				<include name="**"/>				 
			</fileset>
			<manifest>
				<attribute name="Built-By" value="${user.name}"/> 
			</manifest>
		</jar>
	</target>
	
	<target name="cronometer.jar" depends="compile" description="generate the distribution jar" >
		<jar jarfile="lib/cronometer.jar" compress="true">
			<fileset dir="${build}">
				<include name="*.*"/>
				<include name="ca/**"/>
				<include name="com/**"/>
				<include name="se/**"/>
				<include name="img/**"/>
				<include name="docs/**"/>
			</fileset>
			<manifest>
			    <attribute name="Built-By" value="${user.name}"/>
			    <attribute name="Main-Class" value="ca.spaz.cron.CRONOMETER"/>
			</manifest>
		</jar>
	</target>

        <!-- Not needed in Debian
	<target name="launcher" depends="cronometer.jar,docs.jar" description="generate the executable" >
		<launch4j configFile="release/windows/launch4j.xml" />
		<exe4j projectfile="release/windows/cronometer.exe4j"/>
	</target>	
        -->

	 

</project>