forked from Exmaralda-Org/exmaralda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-teide.xml
85 lines (70 loc) · 3.31 KB
/
build-teide.xml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0"?>
<project name="FatJar teide.jar (experimental)" default="doallplatforms" basedir=".">
<property name="release" value="release_builds" />
<taskdef name="jarbundler" classname="net.sourceforge.jarbundler.JarBundler" classpath="../Libraries/jarbundler-1.9.jar"/>
<taskdef name="jsmoothgen" classname="net.charabia.jsmoothgen.ant.JSmoothGen" classpath="../Libraries/jsmooth/lib/jsmoothgen-ant.jar"/>
<property name="jsmooth.dir" value="release_builds/resources/jsmooth" />
<target name="main">
<fatjar.build output="teide.jar">
<fatjar.manifest manifestfile=".manifest"/>
<fatjar.filesource path="/Users/woerner/Java/TEIDE/bin" relpath=""/>
<fatjar.jarsource file="/Users/woerner/Java/JAR/cobra-0.97.2/lib/cobra.jar" relpath=""/>
<fatjar.jarsource file="/Users/woerner/Java/Coma/externalJars/saxon8-jdom.jar" relpath=""/>
<fatjar.jarsource file="/Users/woerner/Java/JAR/cobra-0.97.2/lib/js.jar" relpath=""/>
<fatjar.jarsource file="/Users/woerner/Java/Coma/externalJars/saxon8.jar" relpath=""/>
<fatjar.jarsource file="/Users/woerner/Java/Libraries/jdom.jar" relpath=""/>
<fatjar.jarsource file="/Users/woerner/Java/Libraries/xalan.jar" relpath=""/>
<fatjar.jarsource file="/Users/woerner/Java/Libraries/xercesImpl.jar" relpath=""/>
<fatjar.jarsource file="/Users/woerner/Java/Libraries/commons-net-1.4.1.jar" relpath=""/>
</fatjar.build>
</target>
<target name="do_win">
<!-- create an exe-file for windows -->
<jsmoothgen project="${release}/resources/teide.jsmooth" skeletonroot="../Libraries/jsmooth/skeletons" />
</target>
<target name="do_mac">
<!-- create a jar bundle for the mac -->
<jarbundler
dir="${release}/OSX"
name="TEI Document Explorer"
shortname="TEIDE"
signature="Kai Wörner"
mainclass="org.exmaralda.teide.Launcher"
icon="src/org/exmaralda/teide/resources/teide_icon.icns"
jvmversion="1.6+"
version="1.0beta"
infostring="TEIDE 1.0beta"
build="${DSTAMP}"
bundleid="org.exmaralda.teide.Launcher"
jar="teide.jar">
<javaproperty name="apple.laf.useScreenMenuBar" value="true" />
<javaproperty name="apple.awt.brushMetal" value="true" />
<javaproperty name="apple.awt.showGrowBox" value="false" />
<javaproperty name="com.apple.mrj.application.apple.menu.about.name" value="TEIDE" />
<javaproperty name="apple.awt.textantialiasing" value="true" />
<javaproperty name="SplashFile" value="$APP_PACKAGE/Contents/splash.png"/>
</jarbundler>
<!--<antcall target="do_dmg"/>-->
</target>
<target name="do_dmg">
<!-- works only on macos -->
<!-- Copy the docs into the release directory (anything else?) -->
<copy todir="${release.dir}">
<fileset dir="${dist.docs}"/>
</copy>
<!-- Create a .dmg file containing the app and docs -->
<exec executable="/usr/bin/hdiutil" os="Mac OS X">
<arg value="create"/>
<arg value="-srcfolder"/>
<arg value="${release.dir}"/>
<arg value="-volname"/>
<arg value="${Name} ${version}"/>
<arg value="-ov"/>
<arg value="${Name}-${version}.dmg"/>
</exec>
</target>
<target name="doallplatforms" depends="main">
<antcall target="do_mac" />
<antcall target="do_win" />
</target>
</project>