1
<?xml version="1.0" encoding="iso-8859-1"?>
3
<project name="Tux Guitar" basedir="." >
8
<property name="file.script" value="tuxguitar.bat" />
9
<property name="file.properties" value="${build.path}${file.separator}config.dist" />
10
<property name="file.description" value="${build.path}${file.separator}about_description.dist" />
12
<path id="class.path">
13
<fileset file="${lib.janel-ant.jar}" />
16
<target name="clean" >
17
<delete quiet="true" file="${file.script}" />
18
<delete quiet="true" file="tuxguitar.exe" />
19
<delete quiet="true" file="tuxguitar.lap" />
22
<target name="install" >
23
<mkdir dir="${dist.dst.path}${dist.bin.path}" />
24
<copy todir="${dist.dst.path}${dist.bin.path}">
25
<fileset file="${file.script}"/>
26
<fileset file="tuxguitar.exe"/>
27
<fileset file="tuxguitar.lap"/>
31
<target name="build" >
32
<echo file="${file.properties}" append="false">font.default=Times New Roman,7,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=Times New Roman,6,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
<echo file="${file.properties}" append="true">browser.lines-visible=false${line.separator}</echo>
39
<echo file="${file.properties}" append="true">midi.sequencer=Real Time Sequencer${line.separator}</echo>
40
<echo file="${file.properties}" append="true">skin=Lavender${line.separator}</echo>
42
<echo file="${file.description}" append="true">${line.separator}</echo>
43
<echo file="${file.description}" append="true">This product include third party libraries:${line.separator}</echo>
44
<echo file="${file.description}" append="true">-> SWT (Standard Widget Toolkit): http://www.eclipse.org/swt/${line.separator}</echo>
45
<echo file="${file.description}" append="true">-> iText (Free Java-PDF library): http://www.lowagie.com/iText/${line.separator}</echo>
47
<echo file="${file.script}" append="false">cd "."${line.separator}</echo>
48
<echo file="${file.script}" append="true">javaw -cp ;${dist.jar.path}${build.jar};${lib.swt.jar};${lib.itext.jar};${dist.share.path} -Djava.library.path=${lib.swt.jni} org.herac.tuxguitar.gui.TGMain %1 %2 %3 %4 %5 %6 %7 %8 %9 %10</echo>
49
<chmod file="${file.script}" perm="755"/>
51
<available property="janel.enabled" classname="net.sf.janel.ant.JanelTask" classpathref="class.path" />
52
<antcall target="janel.build" />
55
<target name="janel.build" if="janel.enabled">
56
<taskdef name="janel" classpathref="class.path" classname="net.sf.janel.ant.JanelTask"/>
57
<janel exeType="windows"
59
smallIcon="${build.share.path}${file.separator}skins${file.separator}Lavender${file.separator}icon-16x16.png"
60
bigIcon="${build.share.path}${file.separator}skins${file.separator}Lavender${file.separator}icon-96x96.png"
62
<echo file="tuxguitar.lap" append="false">-Djava.class.path=${dist.jar.path}${build.jar};${lib.swt.jar};${lib.itext.jar};${dist.share.path}${line.separator}</echo>
63
<echo file="tuxguitar.lap" append="true"># Java class to call, ex. mypackage.Start or mypackage/Start${line.separator}</echo>
64
<echo file="tuxguitar.lap" append="true">janel.main.class=org.herac.tuxguitar.gui.TGMain${line.separator}</echo>
65
<echo file="tuxguitar.lap" append="true">${line.separator}</echo>
66
<echo file="tuxguitar.lap" append="true"># the minimum version of the JVM, ex. 1.4.1${line.separator}</echo>
67
<echo file="tuxguitar.lap" append="true">janel.min.java.version=1.4.2${line.separator}</echo>
68
<echo file="tuxguitar.lap" append="true">${line.separator}</echo>
69
<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>
70
<echo file="tuxguitar.lap" append="true"># instances of this property may be used.${line.separator}</echo>
71
<echo file="tuxguitar.lap" append="true">#${line.separator}</echo>
72
<echo file="tuxguitar.lap" append="true">janel.library.path.dir=${lib.swt.jni}${line.separator}</echo>
73
<echo file="tuxguitar.lap" append="true">${line.separator}</echo>
74
<echo file="tuxguitar.lap" append="true"># overrides the default error text ("Error in Java launcher.") with a custom error message.${line.separator}</echo>
75
<echo file="tuxguitar.lap" append="true">#${line.separator}</echo>
76
<echo file="tuxguitar.lap" append="true">janel.error.default.text=Error in TuxGuitar${line.separator}</echo>
77
<echo file="tuxguitar.lap" append="true">${line.separator}</echo>
78
<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>
79
<echo file="tuxguitar.lap" append="true"># error message will be displayed followed by the details.${line.separator}</echo>
80
<echo file="tuxguitar.lap" append="true">#${line.separator}</echo>
81
<echo file="tuxguitar.lap" append="true">janel.error.show.detail=true${line.separator}</echo>
82
<echo file="tuxguitar.lap" append="true">${line.separator}</echo>
83
<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>
84
<echo file="tuxguitar.lap" append="true">#${line.separator}</echo>
85
<echo file="tuxguitar.lap" append="true">janel.memory.max.total.percent=50${line.separator}</echo>
88
<target name="package" />