-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
106 lines (89 loc) · 3.65 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
Mar 5, 2011 2:07:36 PM
BasicESB_Example
An example of using basic esb
pjaol
====================================================================== -->
<project name="BasicESB_Example" default="default" xmlns:ivy="antlib:org.apache.ivy.ant">
<description>
An example of using basic esb
</description>
<property name="ivy.lib.dir" value="lib" />
<property name="depends.dir" value="depends"/>
<property name="build.dir" value="build" />
<property name="dist.dir" value="dist" />
<property name="src.dir" value="src/java" />
<property name="test.src.dir" value="src/test"/>
<property name="compile.path" value="${src.dir}"/> <!--:${test.src.dir}"/>-->
<path id="classpath">
<fileset dir="${ivy.lib.dir}">
<include name="*.jar" />
</fileset>
<fileset dir="${depends.dir}">
<include name="*.jar"/>
</fileset>
</path>
<!-- =================================
target: default
================================= -->
<target name="default" depends="depends" description="Core ESB for running high performance modules">
</target>
<!-- - - - - - - - - - - - - - - - - -
target: depends
- - - - - - - - - - - - - - - - - -->
<target name="depends" depends="clean, setup, resolve, compile">
</target>
<!-- - - - - - - - - - - - - - - - - -
target: setup
- - - - - - - - - - - - - - - - - -->
<target name="setup">
<mkdir dir="${build.dir}" />
<mkdir dir="${dist.dir}" />
<mkdir dir="${ivy.lib.dir}"/>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: clean
- - - - - - - - - - - - - - - - - -->
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
</target>
<!-- - - - - - - - - - - - - - - - - -
target: fullclean
- - - - - - - - - - - - - - - - - -->
<target name="fullclean" depends="clean">
<delete dir="${ivy.lib.dir}"/>
</target>
<!-- =================================
target: compile
================================= -->
<target name="compile" description="compile java files">
<javac srcdir="${compile.path}" destdir="${build.dir}" classpathref="classpath" debug="on" />
<jar destfile="${dist.dir}/${ant.project.name}.jar" basedir="${build.dir}"/>
</target>
<!-- =================================
target: resolve
================================= -->
<target name="resolve" description="--> retrieve dependencies with ivy">
<ivy:retrieve />
</target>
<!-- =================================
target: runMock
================================= -->
<target name="runMock" description="description">
<java classpathref="classpath" classname="com.pjaol.ESB.Mock.MockRunner" fork="true">
<classpath>
<fileset dir="${dist.dir}">
<include name="*.jar"/>
</fileset>
</classpath>
<arg value="example/conf/example.xml"/>
<arg value="forever"/>
<jvmarg value="-Dcom.sun.management.jmxremote"/>
<jvmarg value="-Dcom.sun.management.jmxremote.port=1617"/>
<jvmarg value="-Dcom.sun.management.jmxremote.authenticate=false"/>
<jvmarg value="-Dcom.sun.management.jmxremote.ssl=false"/>
</java>
</target>
</project>