-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
63 lines (59 loc) · 4.08 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Note: two points need to be update when building on a different env: basedir & tomcat -->
<project name="AppRequester" default="build-deploy" basedir=".">
<property environment="env"/>
<property name="projname" value="AppRequester"/>
<property name="src" value="${basedir}/src/"/>
<property name="src.class" value="${basedir}/build/classes"/>
<property name="web.dir" value="${basedir}/WebContent/"/>
<property name="tomcat" value="/home/wenzhao/data/software/apache-tomcat-8.5.15/webapps"/>
<path id="classpath">
<pathelement location="${basedir}/WebContent/WEB-INF/lib/aopalliance-repackaged-2.5.0-b36.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/cdi-api-1.1.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/el-api-2.2.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/hk2-api-2.5.0-b36.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/hk2-locator-2.5.0-b36.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/hk2-utils-2.5.0-b36.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/javassist-3.20.0-GA.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/javax.annotation-api-1.2.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/javax.inject-1.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/javax.inject-2.5.0-b36.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/javax.json-1.1.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/javax.json-api-1.1.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/javax.json.bind-api-1.0.0-RC2.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/javax.servlet-api-3.0.1.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/javax.ws.rs-api-2.1-m09.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jaxb-api-2.2.7.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jersey-client.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jersey-common.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jersey-container-servlet-core.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jersey-container-servlet.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jersey-hk2.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jersey-media-jaxb.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jersey-media-json-binding.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jersey-media-sse.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jersey-server.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/jsr250-api-1.0.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/org.osgi.core-4.2.0.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/osgi-resource-locator-1.0.1.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/persistence-api-1.0.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/protobuf-java-3.3.0.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/servlet-api.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/validation-api-1.1.0.Final.jar"/>
<pathelement location="${basedir}/WebContent/WEB-INF/lib/yasson-1.0.0-RC2.jar"/>
</path>
<target name="build-deploy">
<mkdir dir="${src.class}"/>
<javac srcdir="${src}" destdir="${src.class}">
<classpath refid="classpath"/>
</javac>
<war destfile="${projname}.war" webxml="${web.dir}/WEB-INF/web.xml">
<lib dir="${web.dir}/WEB-INF/lib"/>
<classes dir="${src.class}/">
</classes>
</war>
<copy file="${projname}.war" todir="${tomcat}"/>
<delete file="${projname}.war"/>
</target>
</project>