forked from paulklinkenberg/lucee-loganalyzer
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-compile.xml
executable file
·72 lines (53 loc) · 2.02 KB
/
build-compile.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
<?xml version="1.0" encoding="UTF-8"?>
<project default="compile" basedir=".">
<description>
Build Extension - Compile
</description>
<!-- set global properties for this build -->
<property file="build.properties"/>
<property name="lib" location="source/java/lib"/>
<property name="src" location="source/java/src"/>
<property name="temp" location="temp"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="tags" location="source/cfml/tags"/>
<property name="functions" location="source/cfml/functions"/>
<property name="plugins" location="source/cfml/plugins"/>
<buildnumber file="build.number"/>
<path id="classpath">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</path>
<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="${temp}/classes"/>
<mkdir dir="${temp}/jars"/>
<mkdir dir="${dist}"/>
<condition property="hasjavasource">
<available file="${src}" type="dir"/>
</condition>
<tstamp>
<format property="NOW" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
</target>
<target name="compile" depends="init" if="hasjavasource"
description="compile the java source, if source is available" >
<javac srcdir="${src}" target="1.7" destdir="${temp}/classes" debug="true" debuglevel="lines,vars,source">
<classpath refid="classpath" />
</javac>
<jar jarfile="${temp}/jars/lucee-extension-${codename}.jar" basedir="${temp}/classes" manifest="${src}/META-INF/MANIFEST.MF">
<manifest>
<attribute name="Bundle-Version" value="${bundleversion}${build.number}"/>
<attribute name="Built-Date" value="${NOW}"/>
<attribute name="Bundle-SymbolicName" value="${bundlename}"/>
</manifest>
</jar>
<delete dir="${temp}/classes"/>
</target>
</project>