Java: version numbering of library bumped
[smartapi.git] / Common / Java / SmartAPI / build.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="smartapi" default="jar" basedir=".">
3   <path id="project.class.path">
4     <pathelement location="."/>
5     <pathelement location="lib/catalina.jar"/>
6     <pathelement location="lib/collection-0.6.jar"/>
7     <pathelement location="lib/commons-cli-1.3.jar"/>
8     <pathelement location="lib/commons-codec-1.9.jar"/>
9     <pathelement location="lib/commons-csv-1.0.jar"/>
10         <pathelement location="lib/commons-fileupload-1.3.2.jar"/>
11     <pathelement location="lib/commons-io-2.4.jar"/>
12     <pathelement location="lib/commons-lang3-3.3.2.jar"/>
13     <pathelement location="lib/commons-logging-1.2.jar"/>
14     <pathelement location="lib/gson-2.4.jar"/>
15     <pathelement location="lib/httpclient-4.2.6.jar"/>
16     <pathelement location="lib/httpclient-cache-4.2.6.jar"/>
17     <pathelement location="lib/httpcore-4.4.5.jar"/>
18     <pathelement location="lib/httpmime-4.5.2.jar"/>
19     <pathelement location="lib/jackson-annotations-2.3.0.jar"/>
20     <pathelement location="lib/jackson-core-2.3.3.jar"/>
21     <pathelement location="lib/jackson-databind-2.3.3.jar"/>
22     <pathelement location="lib/jcl-over-slf4j-1.7.12.jar"/>
23     <pathelement location="lib/jena-arq-3.1.0.jar"/>
24     <pathelement location="lib/jena-base-3.1.0.jar"/>
25     <pathelement location="lib/jena-cmds-3.1.0.jar"/>
26     <pathelement location="lib/jena-core-3.1.0.jar"/>
27     <pathelement location="lib/jena-iri-3.1.0.jar"/>
28     <pathelement location="lib/jena-shaded-guava-3.1.0.jar"/>
29     <pathelement location="lib/jena-tdb-3.1.0.jar"/>
30     <pathelement location="lib/jsonld-java-0.5.1.jar"/>
31     <pathelement location="lib/jsonorg.jar"/>
32     <pathelement location="lib/libthrift-0.9.2.jar"/>
33     <pathelement location="lib/log4j-1.2.17.jar"/>
34         <pathelement location="lib/oauth-common.jar"/>
35     <pathelement location="lib/slf4j-api-1.7.20.jar"/>
36     <pathelement location="lib/slf4j-log4j12-1.7.20.jar"/>
37     <pathelement location="lib/xercesImpl-2.11.0.jar"/>
38     <pathelement location="lib/xml-apis-1.4.01.jar"/>
39     <pathelement location="lib/org.eclipse.paho.client.mqttv3-1.0.2.jar"/>
40     <pathelement location="lib/org.eclipse.paho.mqtt.utility-1.0.2.jar"/>
41     <pathelement location="lib/tomcat-servlet-3.0-api.jar"/>
42     <pathelement location="lib/tomcat-coyote.jar"/>
43     <pathelement location="lib/tomcat-juli.jar"/>
44     <pathelement location="lib/tomcat-util.jar"/>
45     <pathelement location="lib/geocode.jar"/>
46     <pathelement location="lib/spin-2.0.0.jar"/>
47   </path>
48   <target name ="jar" description="Create a jar for the smartapi project" depends='compile'>
49     <jar jarfile="dist/SmartAPI-1.0.2.jar" includes="**/**" excludes="*.class" basedir="smartapi/"/>
50   </target>
51   <target name ="compile" description="Compile smartapi code">
52     <javac srcdir="src/" destdir="smartapi/"
53       includes="**/**.java" classpathref="project.class.path"
54       debug="on" deprecation="on"/>
55         <!--executable="/usr/lib64/jvm/java-1.8.0-openjdk-1.8.0/bin/javac" fork="yes"-->
56         <!--<copy todir="smartapi/smartapi/common/ontologies">
57       <fileset dir="src/smartapi/common/ontologies/"/>
58     </copy> -->
59   </target>
60   <target name="clean">
61     <delete dir="smartapi/"/>
62   </target>
63   <target name ="deploy" description="Deploy the Smart API to Tomcat" depends='jar'>
64     <property name="tomcat.local" value="/usr/share/tomcat" />
65     <delete verbose='true' dir='${tomcat.local}/lib/SmartAPI-1.0.2.jar'/>
66     <copy todir='${tomcat.local}/lib/' file='dist/SmartAPI-1.0.2.jar'/>
67   </target>     
68 </project>