~lfaraone/ubuntu/maverick/tuxguitar/fix-mistaken-merge-20100527

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
<?xml version="1.0" encoding="iso-8859-1"?>

<project name="TuxGuitar-pdf" basedir="." default="all">
	<description>
		TuxGuitar PDF Exporter
	</description>
	
	<property file="build.properties" />
	<property name="build.src.path" value="src" />
	<property name="build.path" value="build" />
	<property name="build.jar" value="tuxguitar-pdf.jar" />
	
	<property name="service.class" value="org.herac.tuxguitar.gui.system.plugins.TGPlugin" />
	<property name="service.provider" value="org.herac.tuxguitar.io.pdf.PDFPluginExporter" />
	
	<path id="class.path">
		<pathelement location="${path.itext}"/>
		<pathelement location="${path.swt}"/>
		<pathelement location="${path.tuxguitar}"/>
	</path >
	
	<target name="init" depends="clean">
		<mkdir dir="${build.path}" />
	</target>
	
	<target name="build" depends="init">
		<echo>+-------------------------------------------------+</echo>
		<echo>|          B U I L D I N G   P L U G I N   P D F  |</echo>
		<echo>+-------------------------------------------------+</echo>
		
		<javac srcdir="${build.src.path}" destdir="${build.path}" debug="false" >
			<classpath refid="class.path"/>
			<include name="**/*.java"/>
		</javac>
		
		<mkdir dir="${build.path}/META-INF/services" />
		<echo file="${build.path}/META-INF/services/${service.class}" append="false">${service.provider}</echo>
		
		<echo>+-----------------------------------------------+</echo>
		<echo>|        P A C K A G I N G   P L U G I N        |</echo>
		<echo>+-----------------------------------------------+</echo>
		
		<jar destfile="${build.jar}" basedir="${build.path}" />
		<delete quiet="true" dir="${build.path}" />
	</target>
	
	<target name="clean">
		<delete quiet="true" dir="${build.path}" />
		<delete quiet="true" file="${build.jar}" />
	</target>
	
	<target name="all" depends="build" />
</project>

<!-- eof "$Id: build.xml,v 1.7 2008/02/28 00:35:01 rzr Exp $" -->