-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
68 lines (60 loc) · 2.41 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
<?xml version="1.0"?>
<project name="cf-jms-gateway" default="dist" basedir=".">
<property name="src.dir" value="${basedir}/src" />
<property name="lib.dir" value="${basedir}/lib" />
<property name="lucee4.dir" value="${basedir}/lucee4" />
<property name="build.dir" value="${basedir}/build" />
<property name="dist.dir" value="${basedir}/dist" />
<!-- Load other properties -->
<property file="build.properties" />
<path id="class.path">
<fileset dir="${lib.dir}" includes="**/*.jar" />
</path>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
</target>
<target name="init" depends="clean">
<mkdir dir="${build.dir}/classes" />
<mkdir dir="${build.dir}/lib" />
<mkdir dir="${build.dir}/lucee4" />
<mkdir dir="${dist.dir}" />
</target>
<target name="compile">
<javac srcdir="${src.dir}" destdir="${build.dir}/classes" source="1.6" target="1.6" debug="true">
<classpath refid="class.path" />
</javac>
</target>
<target name="build" depends="compile">
<jar destfile="${build.dir}/lib/jms-gateway.jar">
<fileset dir="${build.dir}/classes" />
</jar>
</target>
<target name="package-lucee4-extension" depends="init, build" description="Package the extension for Lucee 4">
<tstamp>
<format property="ext.release.date" pattern="yyyy-MM-dd hh:mm:ss" />
</tstamp>
<copy todir="${build.dir}/lucee4-temp">
<fileset dir="${lucee4.dir}">
<exclude name="**/*.xml" />
</fileset>
</copy>
<copy file="${lucee4.dir}/config.xml" toFile="${build.dir}/lucee4-temp/config.xml">
<filterset>
<filter token="VERSION" value="${project.version}" />
<filter token="RELEASE_DATE" value="${ext.release.date}" />
</filterset>
</copy>
<zip destfile="${build.dir}/lucee4/cf-jms-gateway-ext.zip">
<zipfileset dir="${build.dir}/lib" includes="*.jar" prefix="lib" />
<zipfileset dir="${lib.dir}" includes="*.jar" prefix="lib" />
<zipfileset dir="${build.dir}/lucee4-temp" />
<zipfileset dir="${basedir}/listener" prefix="listener" />
<zipfileset file="LICENSE" fullpath="license.txt" />
</zip>
<delete dir="${build.dir}/lucee4-temp" />
</target>
<target name="dist" depends="init, package-lucee4-extension">
<copy file="${build.dir}/lucee4/cf-jms-gateway-ext.zip" tofile="${dist.dir}/cf-jms-gateway-lucee4-ext.zip" />
</target>
</project>