-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild-package.xml
51 lines (43 loc) · 1.86 KB
/
build-package.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
<?xml version="1.0"?>
<!-- ======================================================================
Copyright 2012 Ortus Solutions, Corp
DevBox Build
====================================================================== -->
<project name="devbox.package" default="build" basedir=".">
<!--Build Properties-->
<property name="dir.userlocation" value="/Users/lmajano" />
<property name="dir.exports" value="${dir.userlocation}/exports" />
<property name="dir.build" value="${dir.exports}/coldbox-devbox" />
<!-- Build Labels -->
<tstamp prefix="start"/>
<property name="build.label" value="devbox-buildID-${start.DSTAMP}${start.TSTAMP}"/>
<!-- Build Labels -->
<tstamp prefix="start"/>
<!-- Init -->
<target name="init" description="Init">
<!-- Version -->
<input addproperty="devbox.version" message="DevBox Version" />
</target>
<!--build-->
<target name="build" description="Build a new devbox distribution" depends="init">
<!-- Copy build ID -->
<concat destfile="${dir.build}/${build.label}">Built on ${start.TODAY}</concat>
<copy todir="${dir.build}/">
<fileset dir=".">
<exclude name=".git"/>
<exclude name=".build.xml"/>
<exclude name=".build-package.xml"/>
<exclude name=".gitignore"/>
<exclude name=".project"/>
<exclude name="log/*.*"/>
<exclude name="Icon"/>
<exclude name="Icon"/>
<exclude name="resin-data/*.*"/>
<exclude name="watchdog-data/*.*"/>
<exclude name="settings.xml"/>
<exclude name=".DS_Store"/>
</fileset>
</copy>
<zip destfile="${dir.exports}/coldbox-devbox_${devbox.version}.zip" basedir="${dir.build}" preserve0permissions="true"></zip>
</target>
</project>