-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.xml
executable file
·71 lines (67 loc) · 2.68 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
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="WebStarterApp">
<property environment="env"/>
<property name="srcDir" value="."/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.5"/>
<property name="source" value="1.5"/>
<property name="ARCHIVE_DIR" value="./output"/>
<property name="warname" value= "webStarterApp.war"/>
<path id="classpathDir">
<pathelement location="bin"/>
<pathelement location="dep-jar/com.ibm.ws.javaee.jaxrs.1.1_1.0.1.jar"/>
<pathelement location="dep-jar/JSON4J.jar"/>
<pathelement location="dep-jar/httpclient-4.3.4.jar"/>
<pathelement location="dep-jar/httpcore-4.3.2.jar"/>
<pathelement location="dep-jar/httpclient-cache-4.3.4.jar"/>
<pathelement location="dep-jar/httpmime-4.3.4.jar"/>
<pathelement location="dep-jar/commons-codec-1.6.jar"/>
<pathelement location="dep-jar/commons-io-2.4.jar"/>
<pathelement location="dep-jar/fluent-hc-4.3.4.jar"/>
<pathelement location="dep-jar/twitter4j-core-4.0.2.jar"/>
<pathelement location="dep-jar/gson-2.3.jar"/>
<pathelement location="dep-jar/org.ektorp-1.2.2.jar"/>
<pathelement location="dep-jar/junit-4.11.jar"/>
<pathelement location="dep-jar/hamcrest-core-1.3.jar"/>
<pathelement location="dep-jar/servlet-api.jar"/>
</path>
<target name="init">
<mkdir dir="bin"/>
</target>
<target name="clean">
<delete dir="bin"/>
<delete file="${ARCHIVE_DIR}/${warname}" />
</target>
<target name="build" depends="build-project,build-war"/>
<target name="cleanall" depends="clean"/>
<target name="build-project" depends="clean,init">
<copy todir="${ARCHIVE_DIR}">
<fileset file="manifest.yml" />
</copy>
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}"
includeantruntime="false">
<src path="src"/>
<classpath refid="classpathDir"/>
</javac>
</target>
<target name="build-war" depends="build-project">
<war destfile="${ARCHIVE_DIR}/${warname}" webxml="WebContent/WEB-INF/web.xml">
<webinf dir="WebContent/WEB-INF">
<include name="resources"/>
</webinf>
<fileset dir="person_source">
<include name="**/*"/>
</fileset>
<include name="dev_tweets.txt"/>
<include name="mgr_tweets.txt"/>
<fileset dir="WebContent">
<include name="**/*"/>
</fileset>
<lib dir="WebContent/WEB-INF/lib"/>
<lib dir="dep-jar"/>
<lib dir="person_source"/>
<classes dir="bin"/>
</war>
</target>
</project>