~ubuntu-branches/ubuntu/oneiric/tuxguitar/oneiric

« back to all changes in this revision

Viewing changes to TuxGuitar-lilypond/build.xml

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mto: (5.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080619003030-h719szrhsngou7c6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
 
 
3
<project name="TuxGuitar-lilypond" basedir="." default="all">
 
4
        <description>
 
5
                TuxGuitar Lilypond Exporter
 
6
        </description>
 
7
        
 
8
        <property file="build.properties" />
 
9
        <property name="build.src.path" value="src${file.separator}" />
 
10
        <property name="build.share.path" value="share${file.separator}" />
 
11
        <property name="build.path" value="build${file.separator}" />
 
12
        <property name="build.jar" value="tuxguitar-lilypond.jar" />
 
13
        
 
14
        <property name="service.class" value="org.herac.tuxguitar.gui.system.plugins.TGPlugin" />
 
15
        <property name="service.provider" value="org.herac.tuxguitar.io.lilypond.LilypondPluginExporter" />
 
16
        
 
17
        <path id="class.path">
 
18
                <pathelement location="${path.tuxguitar}"/>
 
19
                <pathelement location="${path.swt}"/>
 
20
        </path >
 
21
        
 
22
        <target name="init" depends="clean">
 
23
                <mkdir dir="${build.path}" />
 
24
        </target>
 
25
        
 
26
        <target name="build" depends="init">
 
27
                <echo>+-------------------------------------------------+</echo>
 
28
                <echo>|          B U I L D I N G   P L U G I N          |</echo>
 
29
                <echo>+-------------------------------------------------+</echo>
 
30
                
 
31
                <javac srcdir="${build.src.path}" destdir="${build.path}" debug="false" >
 
32
                        <classpath refid="class.path"/>
 
33
                        <include name="**/*.java"/>
 
34
                </javac>
 
35
                
 
36
                <mkdir dir="${build.path}${file.separator}lang" />
 
37
                <copy todir="${build.path}${file.separator}lang">
 
38
                        <fileset dir="${build.share.path}${file.separator}lang"/>
 
39
                </copy>
 
40
                
 
41
                <mkdir dir="${build.path}/META-INF/services" />
 
42
                <echo file="${build.path}/META-INF/services/${service.class}" append="false">${service.provider}</echo>
 
43
                
 
44
                <echo>+-----------------------------------------------+</echo>
 
45
                <echo>|        P A C K A G I N G   P L U G I N        |</echo>
 
46
                <echo>+-----------------------------------------------+</echo>
 
47
                
 
48
                <jar destfile="${build.jar}" basedir="${build.path}" />
 
49
                <delete quiet="true" dir="${build.path}" />
 
50
        </target>
 
51
        
 
52
        <target name="clean">
 
53
                <delete quiet="true" dir="${build.path}" />
 
54
                <delete quiet="true" file="${build.jar}" />
 
55
        </target>
 
56
        
 
57
        <target name="all" depends="build" />
 
58
</project>
 
59
<!-- eof "$Id: build.xml,v 1.5 2008/02/28 00:35:00 rzr Exp $" -->