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

« back to all changes in this revision

Viewing changes to build-windows.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="Tux Guitar" basedir="." >
4
 
    <description>
5
 
        Tux-Guitar
6
 
    </description>
7
 
 
8
 
        <property name="file.script" value="tuxguitar.bat" />
9
 
        <property name="file.properties" value="${src.build.dir}${file.separator}defaults.properties" />
10
 
        
11
 
        <path id="class.path">
12
 
                <fileset file="${lib.janel-ant.jar}" />
13
 
    </path >    
14
 
                
15
 
        <target name="clean" >  
16
 
                <delete quiet="true" file="${file.script}" />
17
 
                <delete quiet="true" file="tuxguitar.exe" />
18
 
                <delete quiet="true" file="tuxguitar.lap" />            
19
 
        </target>       
20
 
        
21
 
        <target name="install" >        
22
 
                <mkdir dir="${build.bin.dir}" />
23
 
                <copy todir="${build.bin.dir}">
24
 
                        <fileset file="${file.script}"/>
25
 
                    <fileset file="tuxguitar.exe"/>
26
 
                    <fileset file="tuxguitar.lap"/>                     
27
 
                </copy> 
28
 
        </target>
29
 
        
30
 
        
31
 
        <target name="build" >
32
 
                <echo file="${file.properties}" append="false">font.default=Small Fonts,6,0${line.separator}</echo>
33
 
                <echo file="${file.properties}" append="true">font.note=Small Fonts,6,1${line.separator}</echo>
34
 
                <echo file="${file.properties}" append="true">font.time-signature=Arial,10,1${line.separator}</echo>                            
35
 
                <echo file="${file.properties}" append="true">font.printer.default=Small Fonts,5,0${line.separator}</echo>
36
 
                <echo file="${file.properties}" append="true">font.printer.note=Small Fonts,5,1${line.separator}</echo>
37
 
                <echo file="${file.properties}" append="true">font.printer.time-signature=Arial,8,1${line.separator}</echo>                     
38
 
 
39
 
                <echo file="${file.script}" append="false">cd "."${line.separator}</echo>       
40
 
                <echo file="${file.script}" append="true">javaw -cp ;${build.jar.dir}TuxGuitar.jar;${lib.swt.jar};${lib.itext.jar};${build.share.dir} -Djava.library.path=${lib.swt.jni} org.herac.tuxguitar.gui.TuxGuitar %1 %2 %3 %4 %5 %6 %7 %8 %9 %10</echo>        
41
 
                <chmod file="${file.script}" perm="755"/>               
42
 
                                
43
 
                <available property="janel.enabled" classname="net.sf.janel.ant.JanelTask" classpathref="class.path" />
44
 
                <antcall target="janel.build" />
45
 
        </target>               
46
 
 
47
 
        <target name="janel.build" if="janel.enabled">                          
48
 
                <taskdef name="janel" classpathref="class.path" classname="net.sf.janel.ant.JanelTask"/>
49
 
                <janel exeType="windows" 
50
 
                           exe="tuxguitar.exe" 
51
 
                           smallIcon="${src.share.dir}/files/icon-16x16.png" 
52
 
                           bigIcon="${src.share.dir}/files/icon-96x96.png"
53
 
                />      
54
 
                <echo file="tuxguitar.lap" append="false">-Djava.class.path=${build.jar.dir}TuxGuitar.jar;${lib.swt.jar};${lib.itext.jar};${build.share.dir}${line.separator}</echo>
55
 
                <echo file="tuxguitar.lap" append="true"># Java class to call, ex. mypackage.Start or mypackage/Start${line.separator}</echo>
56
 
                <echo file="tuxguitar.lap" append="true">janel.main.class=org.herac.tuxguitar.gui.TuxGuitar${line.separator}</echo>
57
 
                <echo file="tuxguitar.lap" append="true">${line.separator}</echo>
58
 
                <echo file="tuxguitar.lap" append="true"># the minimum version of the JVM, ex. 1.4.1${line.separator}</echo>
59
 
                <echo file="tuxguitar.lap" append="true">janel.min.java.version=1.4.2${line.separator}</echo>
60
 
                <echo file="tuxguitar.lap" append="true">${line.separator}</echo>
61
 
                <echo file="tuxguitar.lap" append="true"># the path to be added to Java system property java.library.path. which is used to locate native DLLs. Multiple${line.separator}</echo>
62
 
                <echo file="tuxguitar.lap" append="true"># instances of this property may be used.${line.separator}</echo>
63
 
                <echo file="tuxguitar.lap" append="true">#${line.separator}</echo>
64
 
                <echo file="tuxguitar.lap" append="true">janel.library.path.dir=${lib.swt.jni}${line.separator}</echo>
65
 
                <echo file="tuxguitar.lap" append="true">${line.separator}</echo>
66
 
                <echo file="tuxguitar.lap" append="true"># overrides the default error text ("Error in Java launcher.") with a custom error message.${line.separator}</echo>
67
 
                <echo file="tuxguitar.lap" append="true">#${line.separator}</echo>
68
 
                <echo file="tuxguitar.lap" append="true">janel.error.default.text=Error in TuxGuitar${line.separator}</echo>
69
 
                <echo file="tuxguitar.lap" append="true">${line.separator}</echo>
70
 
                <echo file="tuxguitar.lap" append="true"># allows the detailed error messages to be disabled (true/false, yes/no - defaults to true). If true, the default${line.separator}</echo>
71
 
                <echo file="tuxguitar.lap" append="true"># error message will be displayed followed by the details.${line.separator}</echo>
72
 
                <echo file="tuxguitar.lap" append="true">#${line.separator}</echo>
73
 
                <echo file="tuxguitar.lap" append="true">janel.error.show.detail=true${line.separator}</echo>
74
 
                <echo file="tuxguitar.lap" append="true">${line.separator}</echo>
75
 
                <echo file="tuxguitar.lap" append="true"># sets the max memory via -Xmx as percent of total physical memory. See above for percent explanation.${line.separator}</echo>
76
 
                <echo file="tuxguitar.lap" append="true">#${line.separator}</echo>
77
 
                <echo file="tuxguitar.lap" append="true">janel.memory.max.total.percent=50${line.separator}</echo>
78
 
        </target>       
79
 
        
80
 
        <target name="package" />
81
 
        
82
 
</project>
 
 
b'\\ No newline at end of file'