-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.xml
74 lines (46 loc) · 2.57 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<project name="Make Servletpot" default="dist" basedir=".">
<description>
simple example build file
</description>
<target name="dist" description="generate the distribution" depends="compile">
<war destfile="./servletpot.war" webxml="./web/WEB-INF/web.xml">
<fileset dir="./web/"/>
</war>
<jar destfile="./servletpot.jar">
<fileset dir="./web/WEB-INF/classes/"/>
</jar>
</target>
<target name="compile" depends="clean">
<copy file="./src/hibernate.cfg.xml" tofile="./web/WEB-INF/classes/hibernate.cfg.xml"/>
<copy file="./src/HibernateConfig.hbm.xml" tofile="./web/WEB-INF/classes/./src/HibernateConfig.hbm.xml"/>
<copy file="./src/HibernateURI.hbm.xml" tofile="./web/WEB-INF/classes/./src/HibernateURI.hbm.xml"/>
<copy file="./src/HibernateFile.hbm.xml" tofile="./web/WEB-INF/classes/./src/HibernateFile.hbm.xml"/>
<javac srcdir="./src/"
destdir="./web/WEB-INF/classes/"
classpath="./web/WEB-INF/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar:./web/WEB-INF/lib/hibernate-core-4.0.1.Final.jar:./web/WEB-INF/lib/hibernate-commons-annotations-4.0.1.Final.jar:./web/WEB-INF/lib/commons-pool-1.5.6.jar:./web/WEB-INF/lib/jedis-2.0.0.jar:./Libs/cassandra-jdbc-1.0.5-SNAPSHOT.jar:./Libs/servlet-api.jar:./web/WEB-INF/lib/twitter4j-core-2.2.1.jar:./web/WEB-INF/lib/mysql.jar:./web/WEB-INF/lib/mail.jar:./web/WEB-INF/lib/httpcore-4.0.1.jar:./web/WEB-INF/lib/httpclient-4.0.1.jar:./Libs/netty-3.4.2.Final.jar:./Libs/NettyExtension-1.1.12.jar"
debug="on">
<classpath>
<pathelement location="./"/>
<pathelement path="/Libs/servlet-api.jar"/>
</classpath>
</javac>
</target>
<target name="clean">
<delete file="./servletpot.war"/>
<delete file="./servletpot.jar"/>
<delete dir="/Developer/apache-tomcat-7.0.4/webapps/servletpot/"/>
<delete dir="./out/"/>
<delete dir="./web/WEB-INF/classes/"/>
<mkdir dir="./web/WEB-INF/classes/"/>
</target>
<target name="deploy" depends="dist">
<copy file="./servletpot.war" tofile="/Developer/apache-tomcat-7.0.4/webapps/ROOT.war"/>
</target>
<target name="package" depends="dist">
<delete file="./../servletpot.zip"/>
<zip destfile="./../servletpot.zip"
basedir="./"
includes="**/*.java, **/*.class, **/*.txt, **/*.xml, **/*.html, **/*.jar, **/*.war, **/*.sh, **/*.iml, **/*.properties, **/*.sql, **/*.TXT"
/>
</target>
</project>