rc1
[disksdb.git] / build.xml
blob61d96ee4259df0382daede745eba215e571baf13
1 <?xml version = "1.0" ?>
2 <project name = "AlbumsStorage" basedir = "." default = "deploy">
3     <property name = "src" location = "src" />
4     <property name = "dist" location = "dist" />
5     <property name = "classes" location = "webApp/WEB-INF/classes" />
6     <property name = "serverlibPath" location = "/media/d4/system/tomcat-4.1.39/common/lib" />
7     <property name = "customLibPath" location = "webApp/WEB-INF/lib" />
8     <property name = "depPath" location = "/media/d4/system/tomcat-4.1.39/webapps" />
9     
10     <target name = "clear">
11         <delete >
12             <fileset dir="${classes}">
13                 <include name="**/*.class" />
14             </fileset>
15             <fileset dir="${dist}">
16                 <include name = "**/*.war" />
17             </fileset>
18         </delete>
19     </target>
20     
21     <target name = "compile" depends = "clear">
22         <javac srcdir = "${src}" destdir = "${classes}" source="1.4" target="1.4">
23             <classpath>
24                 <pathelement path = "${customLibPath}/ojdbc14.jar"></pathelement>
25                 <pathelement path = "${customLibPath}/jdom.jar"></pathelement>
26                 <pathelement path = "${serverlibPath}/servlet.jar"></pathelement>
27                 <pathelement path = "${customLibPath}/log4j-1.2.15.jar"></pathelement>
28             </classpath>
29         </javac>
30     </target>
31     
32     <target name = "pack" depends = "compile">
33         <copy todir="${classes}" file="webApp/log4j/log4j.xml" />
34         <copy todir="${classes}" file="webApp/log4j/log4j.dtd" />
35         <jar destfile = "${dist}/discs.war">
36             <fileset dir = "webApp" />
37         </jar>
38     </target>
39     
40     <target name = "deploy" depends ="pack">
42         <delete file = "${depPath}/discs.war" />
43         <copy todir="${depPath}">
44             <fileset dir = "${dist}">
45                 <include name = "*.war" />
46             </fileset>
47         </copy>
48     </target>
49 </project>