Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 73 lines (67 sloc) 2.77 KB
<?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.7"/>
<property name="source" value="1.7"/>
<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.5.0.jar"/>
<pathelement location="dep-jar/junit-4.11.jar"/>
<pathelement location="dep-jar/hamcrest-core-1.3.jar"/>
<pathelement location="dep-jar/jackson-core-2.9.1"/>
<pathelement location="dep-jar/jackson-databind-2.9.1"/>
<pathelement location="dep-jar/jackson-annotations-2.9.1"/>
<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">
<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>