-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
112 lines (92 loc) · 3.42 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="clean" basedir="." name="lucee-tasks-extension">
<description>Build process for the Tasks extension</description>
<!-- load the build.properties -->
<property file="build.properties"/>
<!-- path defintions -->
<property name="src" location="source"/>
<property name="srcCFML" location="source/cfml"/>
<property name="srcImg" location="source/images"/>
<property name="jars" location="jars"/>
<property name="temp" location="temp"/>
<property name="target" location="target"/>
<!-- auto increment build number -->
<buildnumber file="build.number"/>
<target name="init" description="initalize the enviroment">
<!-- <tstamp/> -->
<!-- delete structure from previous build (if existing) -->
<delete dir="${temp}"/>
<delete dir="${target}"/>
<!-- create structure -->
<mkdir dir="${temp}"/>
<mkdir dir="${target}/"/>
</target>
<target name="createManifest" depends="init" description="create Manifest file" >
<tstamp>
<format property="NOW" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<echo file="${temp}/META-INF/MANIFEST.MF">Manifest-Version: 1.0
Built-Date: ${NOW}
version: "${bundleversion}${build.number}${appendix}"
id: "${id}"
name: "${label}"
description: "${description}"
lucee-core-version: "${luceeCoreVersion}"
release-type: ${releaseType}
event-gateway-instance: "[{'cfc-path':'org.lucee.cfml.TasksGateway','id':'${task-instance-name}','read-only':true,'startup-mode':'automatic','custom':{'package':"${task-instance-package}",'templatePath':"",'checkForChangeInterval':10,'settingLocation':"${setting-location}",'checkForChangeSettingInterval':${check-for-change-setting-interval},'logName':"scheduler"}}]"
</echo>
</target>
<target name="zip" depends="createManifest" description="generate the distribution" >
<!-- copy the logo -->
<copy todir="${temp}/META-INF">
<fileset dir="${srcImg}/">
<include name="logo.png"/>
</fileset>
</copy>
<!-- copy the components -->
<copy todir="${temp}/components">
<fileset dir="${src}/components">
<include name="**/*.cfc"/>
</fileset>
</copy>
<!-- copy the plugins
<copy todir="${temp}/webcontexts/admin/plugin">
<fileset dir="${src}/plugins">
<include name="**/*.cfc"/>
<include name="**/*.cfm"/>
<include name="**/language.xml"/>
</fileset>
</copy> -->
<!-- copy the event-gateway -->
<copy todir="${temp}/event-gateways">
<fileset dir="${src}/event-gateways">
<include name="**/*.cfc"/>
</fileset>
</copy>
<!-- this is necessary because of a bug in the lucee core -->
<copy todir="${temp}/event-gateway">
<fileset dir="${src}/event-gateways">
<include name="**/*.cfc"/>
</fileset>
</copy>
<!-- copy the web context
<copy todir="${temp}/applications">
<fileset dir="${srcCFML}">
<include name="**/*.*"/>
</fileset>
</copy> -->
<!-- copy the jars
<copy todir="${temp}/jars">
<fileset dir="${jars}">
<include name="**/*.jar"/>
</fileset>
</copy> -->
<!-- Zip everything -->
<zip destfile="${target}/${bundlename}-${bundleversion}${build.number}${appendix}.lex">
<zipfileset dir="${temp}"/>
</zip>
</target>
<target name="clean" depends="zip" description="clean up" >
<!-- <delete dir="${temp}"/> -->
</target>
</project>