adding all of botlist, initial add
[botlist.git] / botlistprojects / botspider / spider / lib / java / spider_remote / build.xml
blobc7d8cd688bdee1026547b7ec26391525ee852ba0
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ****************************************************** -->\r
3 <!-- Copyright (c) 2008 - Berlin Brown -->\r
4 <!-- Ant script that is located in the Tomcat webapp directory and -->\r
5 <!-- writes classes to this particular directory -->\r
6 <!-- Description: Testing ruby with with spring web application -->\r
7 <!-- Date: 11/1/2008 -->
8 <!-- ****************************************************** -->\r
9 <project name="OpenBotlist Main Build File" default="run.spider_remote" basedir=".">\r
11     <property file="build.properties" />\r
12     \r
13     <property name="build.dir"            value="${basedir}/build"/>\r
14     <property name="build.classes.dir"    value="${basedir}/build/classes"/>\r
15     <property name="src.dir"              value="${basedir}/src"/>
16         <property name="scala.src.dir"        value="${basedir}/scala"/>
17         \r
18     <property name="lib.dir"              value="${botlist.home}/WEB-INF/lib"/>
19         <property name="lib.runtime.dir"      value="${botlist.home}/runtime-lib"/>\r
20             
21         <!-- **************************************** -->
22         <!-- Jar Imports -->
23         <!-- **************************************** -->
24     <property name="scala.jar"             value="${lib.dir}/scala-library-2.6.1.jar" />
25         <property name="scala-compiler.jar"    value="${lib.runtime.dir}/scala-compiler-2.6.1.jar" />
26         <property name="sqlite.jar"            value="${lib.dir}/sqlitejdbc-v037-nested.jar" />
27         <property name="xml.jar"               value="${lib.runtime.dir}/xercesImpl.jar" />
28         \r
29     <target name="init" description="Initialization">\r
30         <tstamp/>\r
31         <echo message="Running with Tomcat Home=${tomcat.home}" />\r
32     </target>
33         \r
34     <!-- Target: CLASSPATH -->\r
35     <path id="classpath">        
36         <pathelement location="${scala.jar}" />
37         <pathelement location="${scala-compiler.jar}" />
38         <pathelement location="${xml.jar}" />
39         <pathelement location="${sqlite.jar}" />
40         \r
41         <!-- Include the CLASSES directory -->\r
42         <pathelement location="${build.classes.dir}" />\r
43     </path>\r
45     <!-- Target: Prepare -->\r
46     <target name="prepare">\r
47         <mkdir dir="${build.dir}"/>\r
48         <mkdir dir="${build.classes.dir}"/>\r
49     </target>\r
51     <!-- Target: Compile -->\r
52     <target name="compile" depends="prepare">\r
53         <javac deprecation="true"
54                 target="1.5"\r
55                 srcdir="${src.dir}"\r
56                 destdir="${build.classes.dir}"\r
57                 includes="**/*.java">\r
58             <classpath refid="classpath"/>\r
59             <compilerarg value="-Xlint" />\r
60         </javac>        \r
61     </target>
62         
63     <!-- **************************************** -->
64     <!-- Add support for scala compiles, used with liftweb apps -->
65     <!-- Date Created: 12/29/2007 -->
66     <!-- **************************************** -->
67     <taskdef resource="scala/tools/ant/antlib.xml">
68       <classpath refid="classpath" />
69     </taskdef>
70         
71         <!-- Target: Compile Scala Source -->
72         <target name="scala.compile" depends="compile">
73                 <scalac srcdir="${scala.src.dir}" 
74                                 destdir="${build.classes.dir}" 
75                                 classpathref="classpath" force="never">
76                     <include name="**/*.scala"/>
77                 </scalac>
78         </target>
80     <!-- Build beans jar -->
81     <target name="jar.spider_remote" depends="scala.compile">
82         <jar jarfile="${build.dir}/${appname.jar}.jar">
83             <fileset dir="${build.classes.dir}" >
84                                 <include name="**/*.class"/>
85             </fileset>
86         </jar>
87     </target>
88     <target name="run.spider_remote" depends="jar.spider_remote">
89                 <java classname="org.spirit.spiderremote.SpiderRemote">
90                     <classpath refid="classpath" />
91                     <classpath>
92                         <pathelement location="${basedir}" />
93                     </classpath>                    
94                 </java>
95         </target>               \r
96     \r
97     <!-- Main Clean -->\r
98     <target name="clean">\r
99         <delete dir="${build.dir}" />\r
100         <delete dir="${basedir}/bin" />        \r
101     </target>\r
102     <!-- End of Main Clean -->\r
103 </project>\r
104 <!-- End of the File -->