-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
69 lines (55 loc) · 2 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
<?xml version="1.0"?>
<project name="webMethods-IntegrationServer-Ant-Tasks" default="createJar" basedir=".">
<property environment="env" />
<property name="webMethods.home" location="${env.WEBMETHODS_HOME}" />
<!-- GLOBAL PROPERTY SETTINGS -->
<property name="src.dir" location="src" />
<property name="classes.dir" location="classes" />
<property name="build.dir" location="build" />
<tstamp>
<format property="jar.build.date" pattern="yyyy-MM-dd" />
</tstamp>
<property name="version.number" value="1.0.0" />
<property name="jar.file.name" value="wm-is-ant-tasks_${version.number}.jar" />
<path id="classpath.webMethods">
<fileset dir="${webMethods.home}/IntegrationServer/lib">
<include name="wm-isserver.jar" />
</fileset>
<fileset dir="${webMethods.home}/common/lib">
<include name="wm-isclient.jar" />
<include name="wm-brokerclient.jar" />
</fileset>
</path>
<path id="classpath.project">
<fileset dir="${basedir}/jars">
<include name="*.jar" />
</fileset>
</path>
<target name="init">
<mkdir dir="${classes.dir}" />
<mkdir dir="${build.dir}" />
</target>
<target name="compile" depends="init">
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true">
<classpath refid="classpath.webMethods" />
<classpath refid="classpath.project" />
</javac>
</target>
<target name="clean" description="remove the build dir">
<delete dir="${classes.dir}" quiet="true" />
<delete dir="${build.dir}/${jar.file.name}" quiet="true" />
</target>
<target name="createJar" description="Create a jar for the project" depends="compile">
<jar destfile="${build.dir}/${jar.file.name}">
<fileset dir="${classes.dir}" includes="**/*.class" />
<fileset dir="${src.dir}" includes="**/*.xml" />
<metainf dir="${basedir}">
<include name="LICENSE" />
</metainf>
<manifest>
<attribute name="Built-By" value="Software AG" />
<attribute name="Signature-Version" value="${version.number} ${jar.build.date}" />
</manifest>
</jar>
</target>
</project>