forked from markussackmann/extension-redis-single
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-classic.xml
68 lines (59 loc) · 2.02 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
64
65
66
67
68
<?xml version="1.0" encoding="UTF-8"?>
<project default="classic" basedir=".">
<description>Build Redis Extension Classic</description>
<import file="build-compile.xml"/>
<target name="dist" depends="compile" description="generate the distribution">
<!-- doc.json -->
<echo file="${dist}/classic/doc.json">{
"builtDate":"${NOW}",
"version":"${bundleversion}${build.number}${bundleversion_appendix}",
"id":"${id}",
"name":"${codename}",
"codename":"${codename}",
"label":"${label}",
"description":"${description}",
"type":"server",
"author":"${author}",
"category":"${category}"
}
</echo>
<!-- copy the jar just build -->
<copy todir="${dist}/extension/jars">
<fileset dir="${temp}/jars/">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${lib}">
<include name="**/*.jar"/>
<exclude name="**/lucee.jar"/>
<exclude name="**/javax.servlet.jar"/>
<exclude name="**/org-apache-oro-*.jar"/>
</fileset>
</copy>
<!-- copy the logos -->
<copy todir="${dist}/classic">
<fileset dir="${build}/images">
<include name="**/*.*"/>
</fileset>
</copy>
<!-- copy installer files -->
<copy todir="${dist}/extension/">
<fileset dir="${build}">
<include name="**/*.cfc"/>
<include name="**/*.xml"/>
<include name="**/${camelname}.cfc"/>
</fileset>
</copy>
<loadfile property="content1" srcFile="${build}/context/admin/cdriver/${camelname}.cfc" />
<replace haystack="${content1}" needle="{class}" repl="${class}" property="content2"/>
<replace haystack="${content2}" needle="{label}" repl="${label}" property="content3"/>
<replace haystack="${content3}" needle="{desc}" repl="${description}" property="content4"/>
<echo message="${content4}" file="${dist}/extension/context/admin/cdriver/${camelname}.cfc"/>
<!-- Zip everything -->
<zip destfile="${dist}/classic/extension.zip">
<zipfileset dir="${dist}/extension"/>
</zip>
</target>
<target name="buildClassic" depends="dist" description="clean up" >
<delete dir="${dist}/extension"/>
</target>
</project>