rc1
[disksdb.git] / build.xml~
blobdebe3259486de6eb23cd1e369f21d3d77935639d
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" />
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>
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>
32 <target name = "pack" depends = "compile">
33 <copy todir="${classes}/log4j" file="webApp/log4j.xml" />
34 <copy todir="${classes}/log4j" file="webApp/log4j.dtd" />
35 <jar destfile = "${dist}/discs.war">
36 <fileset dir = "webApp" />
37 </jar>
38 </target>
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>