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
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"/>
18 <property name="lib.dir" value="${botlist.home}/WEB-INF/lib"/>
19 <property name="lib.runtime.dir" value="${botlist.home}/runtime-lib"/>
\r
21 <!-- **************************************** -->
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" />
29 <target name="init" description="Initialization">
\r
31 <echo message="Running with Tomcat Home=${tomcat.home}" />
\r
34 <!-- Target: CLASSPATH -->
\r
36 <pathelement location="${scala.jar}" />
37 <pathelement location="${scala-compiler.jar}" />
38 <pathelement location="${xml.jar}" />
39 <pathelement location="${sqlite.jar}" />
41 <!-- Include the CLASSES directory -->
\r
42 <pathelement location="${build.classes.dir}" />
\r
45 <!-- Target: Prepare -->
\r
46 <target name="prepare">
\r
47 <mkdir dir="${build.dir}"/>
\r
48 <mkdir dir="${build.classes.dir}"/>
\r
51 <!-- Target: Compile -->
\r
52 <target name="compile" depends="prepare">
\r
53 <javac deprecation="true"
56 destdir="${build.classes.dir}"
\r
57 includes="**/*.java">
\r
58 <classpath refid="classpath"/>
\r
59 <compilerarg value="-Xlint" />
\r
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" />
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"/>
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"/>
88 <target name="run.spider_remote" depends="jar.spider_remote">
89 <java classname="org.spirit.spiderremote.SpiderRemote">
90 <classpath refid="classpath" />
92 <pathelement location="${basedir}" />
98 <target name="clean">
\r
99 <delete dir="${build.dir}" />
\r
100 <delete dir="${basedir}/bin" />
\r
102 <!-- End of Main Clean -->
\r
104 <!-- End of the File -->