|
112 | 112 | byline="true"/> |
113 | 113 | </target> |
114 | 114 |
|
115 | | - <!-- |
116 | | - **************************************************************** |
117 | | - Only Relevant for building nightly on Hudson server from here on |
118 | | - **************************************************************** |
119 | | - --> |
120 | | - |
121 | | - <!--creates update center version via hudson build server (update-help-sets, )--> |
122 | | - <target name="hudson-nightly" depends="suite.clean, set-impl-version, suite.nbms, unset-impl-version"> |
123 | | - </target> |
124 | | - |
125 | | - <!--to be used after release, sets version number sans svn revision--> |
126 | | - <target name="hudson-stable" depends="suite.clean, set-spec-version, suite.nbms, unset-spec-version"> |
127 | | - </target> |
128 | | - |
129 | | - <!--builds release installers--> |
130 | | - <target name="hudson-release" depends="suite.clean, set-spec-version, build-installers, unset-spec-version"> |
131 | | - </target> |
132 | | - |
133 | 115 | <target name="set-spec-version"> |
134 | 116 | <property file="nbproject/project.properties"/> |
135 | 117 | <foreach target="-do-spec-version" list="${modules}" delimiter=":" param="module_dir" inheritall="true"> |
|
200 | 182 | </if> |
201 | 183 | </target> |
202 | 184 |
|
203 | | - <target name="build-installers"> |
204 | | - <property environment="env" /> |
205 | | - <property file="nbproject/project.properties"/> |
206 | | - |
207 | | - |
208 | | - <!-- handle different environment variables to split the long build-installers process --> |
209 | | - <if> |
210 | | - <and> |
211 | | - <not> |
212 | | - <isset property="env.BUILD_X64"/> |
213 | | - </not> |
214 | | - <not> |
215 | | - <isset property="env.BUILD_X86"/> |
216 | | - </not> |
217 | | - <not> |
218 | | - <isset property="env.BUILD_OTHER"/> |
219 | | - </not> |
220 | | - </and> |
221 | | - <then> |
222 | | - <echo message="No platform specified, building all platforms"/> |
223 | | - <property name="generate.installer.for.platforms" value="windows-x64 linux-x64 macosx"/> |
224 | | - </then> |
225 | | - <else> |
226 | | - <if> |
227 | | - <equals arg1="${env.BUILD_X64}" arg2="true"/> |
228 | | - <then> |
229 | | - <property name="temp.platform1" value="windows-x64 linux-x64 "/> |
230 | | - <echo message="Building for the X64 architecture"/> |
231 | | - </then> |
232 | | - <else> |
233 | | - <property name="temp.platform1" value="" /> <!-- So it isn't undefined --> |
234 | | - </else> |
235 | | - </if> |
236 | | - <if> |
237 | | - <equals arg1="${env.BUILD_X86}" arg2="true"/> |
238 | | - <then> |
239 | | - <property name="temp.platform2" value="windows-x86 " /> |
240 | | - <echo message="Building for the X86 architecture "/> |
241 | | - </then> |
242 | | - <else> |
243 | | - <property name="temp.platform2" value="" /> <!-- So it isn't undefined --> |
244 | | - </else> |
245 | | - </if> |
246 | | - <if> |
247 | | - <equals arg1="${env.BUILD_OTHER}" arg2="true"/> |
248 | | - <then> |
249 | | - <property name="temp.platform3" value="macosx"/> |
250 | | - <echo message="Building for Mac OS X"/> |
251 | | - </then> |
252 | | - <else> |
253 | | - <property name="temp.platform3" value="" /> <!-- So it isn't undefined --> |
254 | | - </else> |
255 | | - </if> |
256 | | - <!-- Since properties are immutable we needed temporary values --> |
257 | | - <property name="generate.installer.for.platforms" value="${temp.platform1}${temp.platform2}${temp.platform3}"/> |
258 | | - </else> |
259 | | - </if> |
260 | | - |
261 | | - <ant antfile="template.xml" dir="nbi/stub"> |
262 | | - <property name="suite.location" value="${basedir}"/> |
263 | | - <property name="suite.nbi.product.uid" value="${app.name}"/> |
264 | | - <!--TODO: this is .0.2 because of the pre-release static 3.0.0, else the RCs could not be installed next to a beta--> |
265 | | - <property name="suite.nbi.product.version" value="${plugins.version}.0.${nbm.revision}"/> |
266 | | - <property name="nbi.stub.location" value="${basedir}/nbi/stub"/> |
267 | | - <property name="nbi.stub.common.location" value="${basedir}/nbi/.common"/> |
268 | | - <property name="nbi.ant.tasks.jar" value="${basedir}/nbi/antlib/nbi-ant-tasks.jar"/> |
269 | | - <property name="nbi.registries.management.jar" value="${basedir}/nbi/antlib/nbi-registries-management.jar"/> |
270 | | - <property name="nbi.engine.jar" value="${basedir}/nbi/antlib/nbi-engine.jar"/> |
271 | | - <property name="nbi.license.file" value="${basedir}/licenses-sdk.txt"/> |
272 | | - <!-- <property name="generate.installer.for.platforms" value="windows-x86 windows-x64 linux-x86 linux-x64 macosx"/> --> |
273 | | - <property name="generator-jdk-location-forward-slashes" value="${java.home}"/> |
274 | | - <property name="generated-installers-location-forward-slashes" value="${basedir}/build/installer"/> |
275 | | - <property name="pack200.enabled" value="false"/> |
276 | | - <property name="nbi.icon.file" value="${basedir}/jmonkeyplatform.png"/> |
277 | | - <property name="nbi.dock.icon.file" value="${basedir}/jmonkeyplatform.icns"/> |
278 | | - <property name="product.description" value="${app.description}"/> |
279 | | - <property name="product.categories" value="${app.categories}"/> |
280 | | - </ant> |
281 | | - </target> |
282 | | - |
283 | 185 | <target name="build-zip-for-installer" depends="-set-bundled-jdkhome, suite.build-zip"/> |
284 | 186 |
|
285 | 187 | <target name="-set-bundled-jdkhome"> |
286 | 188 | <property name="jdkhome.string" value='jdkhome="jdk"'/> |
287 | 189 | </target> |
288 | 190 |
|
289 | | - <!--creates a debian package from the installer--> |
290 | | - <target name="create-deb-package" depends="suite.build-zip"> |
291 | | - <unzip src="${dist.dir}/${app.name}.zip" dest="${dist.dir}/${app.name}"> |
292 | | - <globmapper from="${app.name}/*" to="*"/> |
293 | | - </unzip> |
294 | | - <desktopentry |
295 | | - toFile="build/${app.name}.desktop" |
296 | | - name="${app.title}" |
297 | | - comment="${app.title}" |
298 | | - exec="/opt/${app.name}/bin/${app.name}" |
299 | | - icon="/opt/${app.name}/${app.name}.png" |
300 | | - categories="Development;Java" |
301 | | - /> |
302 | | - <deb toDir="dist" |
303 | | - package="jme3-sdk" |
304 | | - version="${app.version}" |
305 | | - section="devel" |
306 | | - depends="sun-java6-jdk" |
307 | | - maintainer="jMonkeyEngine" |
308 | | - homepage="http://www.jmonkeyengine.org" |
309 | | - postrm="debscripts/postrm" |
310 | | - > |
311 | | - <tarfileset dir="dist/${app.name}/" prefix="opt/${app.name}"> |
312 | | - <exclude name="bin/**"/> |
313 | | - </tarfileset> |
314 | | - <tarfileset dir="dist/${app.name}/bin" prefix="opt/${app.name}/bin" filemode="755"> |
315 | | - <exclude name="*.exe"/> |
316 | | - </tarfileset> |
317 | | - <tarfileset file="build/${app.name}.desktop" prefix="usr/share/applications"/> |
318 | | - <tarfileset file="${app.name}.png" prefix="opt/${app.name}"/> |
319 | | - <description synopsis="jMonkeyEngine3 SDK is a complete solution for Java OpenGL game development."> |
320 | | - jMonkeyEngine 3 was rebuilt from the ground up to be a modern 3D game engine, |
321 | | - compatible with OpenGL 2.0 and above. |
322 | | - Its architecture is shader-based, making it fully capable of current and |
323 | | - next generation graphics standards. The jMonkeyEngine SDK gives you a complete IDE |
324 | | - for coding and for managing and creating game assets. |
325 | | - </description> |
326 | | - </deb> |
327 | | - </target> |
328 | | - |
329 | 191 | </project> |
0 commit comments