forked from jenkinsci/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
45 lines (40 loc) · 1.87 KB
/
Copy pathbuild.xml
File metadata and controls
45 lines (40 loc) · 1.87 KB
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
<?xml version="1.0" encoding="UTF-8"?><!--ant-->
<project name="Jenkins OSX Installer Package" basedir="." default="build">
<property file="build.properties" />
<!-- Created by Ingo Richter on 2011-04-08. -->
<!-- Copyright (c) 2011. All rights reserved. -->
<!-- =================================
target: init
================================= -->
<target name="init" description="--> Prepare the build process" depends="">
<!-- Check if we know which build to package. If not -> fail -->
<fail unless="jenkinsBuildNumber" message="Please provide -DjenkinsBuildNumber=1.xxx when calling this script" />
<mkdir dir="${builddir}" />
</target>
<!-- =================================
target: clean
================================= -->
<target name="clean" description="--> Remove the installer and intermediate files" depends="">
<delete dir="${builddir}" />
</target>
<!-- =================================
target: package
Create a zip file which contains all the files and the git repository to rebuild everything
================================= -->
<target name="package" description="--> Package the project folder and the build script and place it in ${basedir}/.." depends="">
<tstamp/>
<zip destfile="${basedir}/../${ant.project.name}-${DSTAMP}-${TSTAMP}.zip" >
<fileset dir="${basedir}/">
<include name="**/**" />
</fileset>
</zip>
</target>
<!-- =================================
target: build
================================= -->
<target name="build" description="--> Build the Installer" depends="init">
<exec executable="${packagemaker}" dir="${basedir}" os="Mac OS X" output="${builddir}/packagemaker-${jenkinsBuildNumber}.log">
<arg line="-v --doc JenkinsInstaller.pmdoc --out ${builddir}/${installer.file.name} --version ${jenkinsBuildNumber} --title '${installer.title}'" />
</exec>
</target>
</project>