-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
84 lines (62 loc) · 2.33 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="clean" basedir="." name="administrator-extension">
<description>
Build the Lucee Administrator Extension
</description>
<!-- set global properties for this build -->
<property file="build.properties"/>
<property name="src" location="source"/>
<property name="srcImg" location="source/images"/>
<property name="srcCFML" location="source/cfml"/>
<property name="temp" location="temp"/>
<property name="build" location="build"/>
<property name="dist" location="target"/>
<property name="javaVersionCoreDefault" value="11"/>
<property name="javaVersionAgent" value="11"/>
<property name="javaVersionLoader" value="11"/>
<property name="runtime_classpath" value="${java.class.path}"/>
<tstamp>
<format property="NOW" pattern="yyyy/MM/dd HH:mm:ss z" locale="en,GB"/>
</tstamp>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<delete dir="${temp}"/>
<delete dir="${dist}"/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${temp}"/>
<mkdir dir="${build}"/>
<mkdir dir="${dist}/"/>
</target>
<target name="dist" depends="init"
description="generate the distribution" >
<!-- copy the logo -->
<copy todir="${dist}/extension/META-INF">
<fileset dir="${srcImg}/">
<include name="logo.png"/>
</fileset>
</copy>
<!-- add Manifest -->
<echo file="${dist}/extension/META-INF/MANIFEST.MF">Manifest-Version: 1.0
Built-Date: ${NOW}
version: "${bundleversion}"
id: "${id}"
name: "${label}"
description: "${description}"
start-bundles: false
trial: false
lucee-core-version: "${luceeCoreVersion}"
release-type: ${releaseType}
mapping: "[{'virtual':'/lucee/admin','physical':'{lucee-config}/context/admin','archive':'{lucee-config}/context/lucee-admin.lar','primary':'physical ','inspect':'once ','toplevel':'true','readonly':'true','listener-mode':'curr2root','listener-type':'modern'}]"
</echo>
<!-- Zip everything -->
<zip destfile="${dist}/${filename}-${bundleversion}.lex">
<zipfileset dir="${dist}/extension"/>
</zip>
</target>
<target name="clean" depends="dist" description="clean up" >
<delete dir="${dist}/extension"/>
<delete dir="${build}"/>
<delete dir="${temp}"/>
</target>
</project>