forked from knime-mpicbg/mondrian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
137 lines (94 loc) · 5.2 KB
/
build.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<project name="mondrian" default="deploy.mac" basedir=".">
<!--define the jarbundler-task-->
<taskdef name="jarbundler" classname="net.sourceforge.jarbundler.JarBundler"/>
<!--define the launch4j-task-->
<property name="launch4j.dir" location="/Users/brandl/local/software/launch4j"/>
<taskdef name="launch4j"
classname="net.sf.launch4j.ant.Launch4jTask"
classpath="${launch4j.dir}/launch4j.jar:${launch4j.dir}/lib/xstream.jar"/>
<path id="maven-ant-tasks.classpath" path="${basedir}/resources/maven-ant-tasks-2.1.0.jar"/>
<property name="src.dir" location="${basedir}/src"/>
<property name="resources.dir" location="${basedir}/resources"/>
<property name="classes.dir" location="${basedir}/classes"/>
<property name="lib.dir" location="${basedir}/lib"/>
<!--<property name="lib.mrj" location="${basedir}/mrj"/>-->
<property name="dist.dir" location="${basedir}/../mondrian-deployed"/>
<property name="bin.dir" location="${basedir}/bin"/>
<property name="project.name" value="mondrian"/>
<path id="classpath">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
<!--<fileset dir="${lib.mrj}">-->
<!--<include name="*.jar"/>-->
<!--</fileset>-->
</path>
<target name="compile" description="compile all sources">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" source="1.5" target="1.5">
<classpath refid="classpath"/>
<!--<compilerarg value="-g:lines,source,vars"/>-->
</javac>
</target>
<target name="create-jar" depends="compile" description="Recreates the mondrian.jar">
<property name="jarfile" value="${project.name}.jar"/>
<delete failonerror="true" file="${jarfile}"/>
<jar basedir="${classes.dir}" destfile="${jarfile}"/>
<jar update="true" basedir="${resources.dir}" destfile="${jarfile}"/>
<!--<jar update="true" basedir="${lib.mrj}" destfile="${jarfile}"/>-->
<!--<jar basedir="${bin.dir}" includes="config/config.sxl" update="true" destfile="${project.name}.jar"/>-->
<!--<jar basedir="${user.home}" includes=".winlayout" update="true" destfile="${project.name}.jar"/>-->
<jar destfile="${jarfile}" update="true">
<manifest>
<attribute name="Built-By"
value="Holger Brandl (Max Planck Institute of Molecular Cell Biology and Genetics (MPI-CBG)). All rights reserverd, 2010"/>
<attribute name="Main-Class" value="de.mpicbg.sweng.mondrian.MondrianStarter"/>
<attribute name="Class-Path" value="lib/REngine-0.6.jar lib/Rserve-0.6.jar"/>
<!--<attribute name="SplashScreen-Image" value="Logo.gif"/>-->
</manifest>
</jar>
<!-- embedd some config files directly into the jar-->
<!--<jar basedir="${bin.dir}" includes="config/miguelmic.sxl" update="true" destfile="${project.name}.jar"/>-->
<!--<move file="${jarfile}" todir="${lib.dir}"/>-->
<delete dir="${classes.dir}" failonerror="true"/>
</target>
<target name="deploy.mac" depends="create-jar" description="creates a macos app for the mondrian">
<property name="target.dir" value="${dist.dir}"/>
<delete file="${target.dir}" failonerror="true"/>
<mkdir dir="${target.dir}"/>
<!--readd this if you want an icon icon="rmicon.icns"-->
<jarbundler dir="${target.dir}"
name="Mondrian"
shortname="Mondrian"
mainclass="de.mpicbg.sweng.mondrian.MondrianStarter"
icon="Mondrian.icns"
jvmversion="1.6+"
version="6.0 BETA"
vmoptions="-Xmx1024m -Xms512m -Dcom.apple.macos.useScreenMenuBar=true -Dapple.laf.useScreenMenuBar=true">
<!--<javaproperty name="WorkingDirectory" value="$APP_PACKAGE/Contents/Resources/Java/"/>-->
<!--<jarfileset refid="maven.dependencies">-->
<!--<include name="*.jar"/>-->
<!--<include name="target/tdscore.jar"/>-->
<!--</jarfileset>-->
<jarfileset dir="${basedir}">
<include name="lib/*.jar"/>
<include name="mondrian.jar"/>
</jarfileset>
<!--<resourcefilelist dir="lib/" files="plugins/*" />-->
<javaproperty name="apple.laf.useScreenMenuBar" value="true"/>
<javaproperty name="apple.awt.brushMetal" value="true"/>
<javaproperty name="apple.awt.showGrowBox" value="false"/>
</jarbundler>
</target>
<target name="deploy.win" depends="create-jar" description="creates a macos app for the mondrian">
<property name="target.dir" value="${dist.dir}"/>
<delete file="${target.dir}" failonerror="true"/>
<mkdir dir="${target.dir}"/>
<launch4j configFile="${basedir}/launch4j.cfg"/>
</target>
<target name="cleanAll" description="Remove all generated files">
<property name="jarfile" value="${project.name}.jar"/>
<delete file="${jarfile}"/>
<delete dir="${classes.dir}" failonerror="false"/>
</target>
</project>