forked from lucee/extension-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-classic.xml
63 lines (45 loc) · 1.66 KB
/
build-classic.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
<?xml version="1.0" encoding="UTF-8"?>
<project default="clean" basedir="." name="mongodb-extension">
<description>
Build classic MongoDB Extension for 4.5
</description>
<import file="build-compile.xml"/>
<target name="copyClassic" depends="copyBase" description="copy source file to temp" >
<echo file="${dist}/classic/doc.json">{
"builtDate":"${NOW}",
"version":"${bundleversion}${build.number}",
"id":"${id}",
"name":"${codename}",
"codename":"${codename}",
"label":"${label}",
"description":"${description}",
"type":"server",
"author":"${author}",
"category":"${category}"
}</echo>
<!-- copy the installer files -->
<copy todir="${dist}/classic/">
<fileset dir="${build}/images">
<include name="**/*.*"/>
</fileset>
</copy>
<loadfile property="c1" srcFile="${build}/context/admin/cdriver/${camelname}Cache.cfc" />
<replace haystack="${c1}" needle="{class}" repl="${class}" property="c2"/>
<replace haystack="${c2}" needle="{label}" repl="${labelCache}" property="c3"/>
<replace haystack="${c3}" needle="{desc}" repl="${descCache}" property="c4"/>
<echo message="${c4}" file="${dist}/extension/context/admin/cdriver/${camelname}Cache.cfc"/>
</target>
<target name="buildClassic" depends="copyClassic"
description="generate the distribution" >
<!-- copy the installer files -->
<copy todir="${dist}/extension/">
<fileset dir="${build}/classic">
<include name="**/*.*"/>
</fileset>
</copy>
<!-- Zip everything -->
<zip destfile="${dist}/classic/extension.zip">
<zipfileset dir="${dist}/extension"/>
</zip>
</target>
</project>