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">
12 <fileset dir=
"${classes}">
13 <include name=
"**/*.class" />
15 <fileset dir=
"${dist}">
16 <include name =
"**/*.war" />
21 <target name =
"compile" depends =
"clear">
22 <javac srcdir =
"${src}" destdir =
"${classes}" source=
"1.4" target=
"1.4">
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>
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" />
40 <target name =
"deploy" depends =
"pack">
42 <delete file =
"${depPath}/discs.war" />
43 <copy todir=
"${depPath}">
44 <fileset dir =
"${dist}">
45 <include name =
"*.war" />