~ubuntu-branches/ubuntu/lucid/tuxguitar/lucid

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

<project name="TuxGuitar-converter" basedir="." default="all">
	<description>
		TuxGuitar-converter
	</description>
	
	<property file="build.properties" />
	<property name="build.src.path" value="src" />
	<property name="build.share.path" value="share" />
	<property name="build.path" value="build" />
	<property name="build.jar" value="tuxguitar-converter.jar" />
	
	<property name="build.src.path" value="src" />
	<property name="build.path" value="build" />
	
	
	<property name="service.class" value="org.herac.tuxguitar.gui.system.plugins.TGPlugin" />
	<property name="service.provider" value="org.herac.tuxguitar.gui.tools.custom.converter.TGConverterPlugin" />
	
	<path id="class.path">
		<pathelement location="${path.tuxguitar}"/>
		<pathelement location="${path.swt}"/>
	</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   L I B R A R Y        |</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}${file.separator}lang" />
		<copy todir="${build.path}${file.separator}lang">
			<fileset dir="${build.share.path}${file.separator}lang"/>
		</copy>
		
		<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   L I B R A R Y      |</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>