source: other-projects/expeditee-release-kits/kits/rke/ant-scripts/init.xml@ 28695

Last change on this file since 28695 was 28695, checked in by ak19, 10 years ago

Expeditee team (Jeremy, jts21). Preliminary versions of the release-kits files for generating an installer containing the executable expeditee jar file. The installer is still tattoed with Greenstone and fails, but will leave a working jar behind on the file system.

File size: 7.6 KB
Line 
1<project name="rke-init">
2 <!-- CHECK PRE-CONDITIONS -->
3 <target name="init">
4
5 <!-- CLASSPATH -->
6 <path id="project.classpath">
7
8 <!-- our classes -->
9 <fileset dir="${rk.home}/shared/core">
10 <include name="ant-tasks/antelope/AntelopeTasks_3.4.2.jar"/>
11 <include name="ant-tasks/orangevolt/roxes-win32forjava-1.1.1.jar"/>
12 <include name="ant-tasks/orangevolt/orangevolt-ant-tasks-1.3.8.jar"/>
13 <include name="ant-tasks/greenstone/anttasks.jar"/>
14 <include name="ant-tasks/7z-ant/7z.jar"/>
15 <include name="lib/crypt.jar"/>
16 <include name="lib/serializer.jar"/>
17 <include name="lib/xalan.jar"/>
18 <include name="lib/xercesImpl.jar"/>
19 <include name="lib/xml-apis.jar"/>
20 <include name="ant-installer/lib/ant-installer-ext.jar"/>
21 <include name="ant-installer/lib/ant-installer.jar"/>
22 </fileset>
23
24 </path>
25
26 <!-- SELF DEFINED TASKS AND TYPES -->
27 <taskdef name="if" classname="ise.antelope.tasks.IfTask" classpathref="project.classpath"/>
28 <taskdef name="try" classname="ise.antelope.tasks.TryTask" classpathref="project.classpath"/>
29 <taskdef name="math" classname="ise.antelope.tasks.MathTask" classpathref="project.classpath"/>
30 <taskdef name="sevenzip" classname="org.apache.tools.ant.SevenZip" classpathref="project.classpath"/>
31 <taskdef name="installer" classname="org.tp23.antinstaller.taskdefs.Installer" classpathref="project.classpath"/>
32 <typedef name="iuv" classname="org.greenstone.anttasks.InsertUniqueValue" classpathref="project.classpath"/>
33 <typedef name="rsr" classname="org.greenstone.anttasks.RegexSearchReplace" classpathref="project.classpath"/>
34 <typedef name="dcff" classname="org.greenstone.anttasks.DeleteChunkFromFile" classpathref="project.classpath"/>
35 <typedef name="pstf" classname="org.greenstone.anttasks.PatternSetToFile" classpathref="project.classpath"/>
36 <typedef name="rsplit" classname="org.greenstone.anttasks.SplitResource" classpathref="project.classpath"/>
37 <typedef name="get-property-value" classname="org.greenstone.anttasks.GetPropertyValue" classpathref="project.classpath"/>
38
39 <!-- CONSTANTS (overridable in build.properties) -->
40
41 <!-- svn root -->
42 <property name="svn.root" value="https://svn.cms.waikato.ac.nz/svn/expeditee/trunk" />
43
44 <!-- the minimum version of java which the installer should be run with (this gets used in search4j) -->
45 <property name="java.min.version" value="1.4.0_00"/>
46
47 <!-- create a localised basedir property -->
48 <path id="basedir.path"><pathelement location="${basedir}"/></path>
49 <property name="basedir.local" refid="basedir.path"/>
50
51 <!-- size of resource chunks (windows wrapper) -->
52 <property name="resources.chunksize" value="8388608"/>
53
54 <!-- the extra space for the dmg image in KB (mac wrapper) -->
55 <property name="dmg.overhead" value="4096"/>
56
57 <!-- current date and time -->
58 <tstamp>
59 <format property="current.month" pattern="MMM"/>
60 <format property="current.year" pattern="yyyy"/>
61 <format property="date" pattern="yyyy.MM.dd"/>
62 </tstamp>
63
64 <if>
65 <bool><equals arg1="${x64}" arg2="true"/></bool>
66 <property name="extension-x64" value="-x64" />
67 <property name="extension_x64" value="_x64" />
68 <else>
69 <property name="extension-x64" value="" />
70 <property name="extension_x64" value="" />
71 </else>
72 </if>
73
74 <!-- BUNDLED JAVA INFO -->
75 <!-- the bundled javas are kept in shared/linux/wrapper and shared/windows/wrapper in the repository -->
76 <!-- change this info when the bundled version changes -->
77 <property name="java.extracted" value="jre"/> <!-- set this to the name of the top level directory in the above archive -->
78
79 <!-- linux -->
80 <property name="linux-java.installer" value="jre_bin${extension_x64}"/>
81 <property name="bundled.version.linux-java" value="1.6.0_05"/> <!-- set this to the version number of java in the above archive -->
82 <property name="component.bytesize.linux-java" value="101245987"/> <!-- set this to the size of the extract archive -->
83
84 <!-- windows -->
85 <property name="windows-java.installer" value="jre.exe"/>
86 <property name="bundled.version.windows-java" value="1.6.0_07"/> <!-- set this to the version number of java in the above archive -->
87 <property name="component.bytesize.windows-java" value="75000000"/> <!-- set this to the size of the extract archive -->
88
89 <!-- version numbers of other bundled things -->
90 <property name="bundled.version.imagemagick" value="6.4.3"/>
91 <property name="bundled.version.ghostscript" value="8.63"/>
92 <property name="bundled.version.tomcat" value="6.0.20"/>
93
94 <!-- default revision and branch path -->
95 <property name="branch.revision" value="HEAD" />
96 <property name="branch.path" value="trunk" />
97
98
99
100 <!-- version number -->
101 <if><bool><not><isset property="version"/></not></bool>
102 <fail>Version number not set. Check that the file '${rk.name}-build.properties' exists and defines property 'version'.</fail>
103 </if>
104 <property name="app.version" value="${version}"/>
105
106 <!-- work out rk.os -->
107 <if>
108 <bool>
109 <or>
110 <equals arg1="${rk.os}" arg2="linux"/>
111 <equals arg1="${rk.os}" arg2="mac"/>
112 <equals arg1="${rk.os}" arg2="windows"/>
113 </or>
114 </bool>
115 <echo>Using user-specified value for rk.os: '${rk.os}'</echo>
116
117 <else><if>
118 <bool><equals arg1="${os.name}" arg2="Linux"/></bool>
119 <property name="rk.os" value="linux"/>
120
121 <else><if>
122 <bool><equals arg1="${os.name}" arg2="Mac OS X"/></bool>
123 <property name="rk.os" value="mac"/>
124
125 <else>
126 <if>
127 <bool><os family="windows"/></bool>
128 <property name="rk.os" value="windows"/>
129 <else>
130 <fail>Can't work out what to set rk.os to. Please report this to [email protected] . In the mean time, manually set rk.os to 'windows', 'mac', or 'linux' by reinvoking the release kit with, for example, '-Drk.os=windows'</fail>
131
132 </else></if></else></if></else></if></else></if>
133
134 <!-- set os.suffix and os.shell -->
135 <if><bool><equals arg1="${rk.os}" arg2="mac"/></bool>
136 <exec executable="uname" outputproperty="mac.arch">
137 <arg line="-p"/>
138 </exec>
139
140 <if><bool><equals arg1="${mac.arch}" arg2="powerpc"/></bool>
141 <property name="os.suffix" value="MacOS-ppc"/>
142 <property name="arch" value="-ppc"/>
143 <else>
144 <property name="os.suffix" value="MacOS-intel"/>
145 <property name="arch" value="-intel"/>
146 </else>
147 </if>
148
149 <property name="os.shell" value="darwin"/>
150 </if>
151 <property name="arch" value=""/>
152
153 <property name="os.suffix" value="${rk.os}"/>
154 <property name="os.shell" value="${rk.os}"/>
155
156 <!-- set os.script.format -->
157 <if><bool><or><equals arg1="${rk.os}" arg2="linux"/><equals arg1="${rk.os}" arg2="mac"/></or></bool>
158 <property name="os.script.format" value="sh"/>
159 <else><if><bool><equals arg1="${rk.os}" arg2="windows"/></bool>
160 <property name="os.script.format" value="bat"/>
161 </if></else></if>
162
163 <!-- show important properties -->
164 <echo level="info">Projectname: ${projectname}</echo>
165 <echo level="info">Version (version): ${version}${version-extra}</echo>
166 <echo level="info">Major Version (version.major): ${version.major}</echo>
167 <echo level="info">Branch Path (branch.path): ${branch.path}</echo>
168 <echo level="info">Date (date): ${date}</echo>
169 <echo level="info">Current Month (current.month): ${current.month}</echo>
170 <echo level="info">Current Year (current.year): ${current.year}</echo>
171 <echo level="info">Operating System (rk.os): ${rk.os}</echo>
172 <echo level="info">Operating System Suffix (os.suffix): ${os.suffix}</echo>
173 <echo level="info">Operating System Script format (os.script.format): ${os.script.format}</echo>
174 <echo level="info">Operating System Shell (os.shell): ${os.shell}</echo>
175
176
177 </target>
178</project>
Note: See TracBrowser for help on using the repository browser.