-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
88 lines (66 loc) · 2.16 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="build" basedir="." name="FileCoverage-extension">
<description>
Build the FileCoverage Extension
</description>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="src" location="src"/>
<property name="name" value="filecoverage-extension" />
<buildnumber file="build.number"/>
<property file="build.properties"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<delete dir="${dist}"/>
<delete dir="${build}"/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}/"/>
<mkdir dir="${build}/extension"/>
<tstamp>
<format property="NOW" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
</target>
<!--
<import file="build-compile.xml"/>
-->
<target name="makeManifest" depends="init" description="create the manifest file" >
<echo file="${build}/extension/META-INF/MANIFEST.MF">Manifest-Version: 1.0
Built-Date: ${NOW}
version: "${bundleversion}${build.number}"
id: "${id}"
name: "${label}"
lucee-core-version: "${luceeCoreVersion}”
release-type: ${releaseType}
description: "${description}"
start-bundles: false
trial: false
</echo>
</target>
<target name="build" depends="makeManifest" description="generate the build" >
<!-- copy the logo -->
<copy todir="${build}/extension/META-INF">
<fileset dir="${src}/images">
<include name="logo.png"/>
</fileset>
</copy>
<copy todir="${build}/extension/applications">
<fileset dir="filecoverage">
<include name="**/*.*"/>
</fileset>
</copy>
<copy todir="${build}/extension/context">
<fileset dir="${src}/context">
<include name="**/*.*"/>
</fileset>
</copy>
<!-- Zip everything with version-->
<zip destfile="${dist}/${name}-${bundleversion}${build.number}.lex">
<zipfileset dir="${build}/extension"/>
</zip>
<!-- Create the release file -->
<zip destfile="${dist}/${name}.lex">
<zipfileset dir="${build}/extension"/>
</zip>
</target>
</project>