-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
52 lines (46 loc) · 1.98 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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project>
<project name="MotorDepot" basedir=".">
<!-- importing of properties file -->
<import file="properties.default.xml" />
<!-- MySQL connection properties -->
<property name="mysql-jdbc" value="jdbc:mysql://${mysql-host}:${mysql-port}
?useSSL=true&useUnicode=true&characterEncoding=UTF-8" />
<!-- Tomcat connection properties -->
<property name="tomcat-bin" value="${tomcat}/bin" />
<property name="tomcat-lib" value="${tomcat}/lib" />
<property name="tomcat-manager" value="${tomcat-host}:${tomcat-port}/manager/text" />
<!-- targets for database processing -->
<target name="init data base">
<sql driver="com.mysql.jdbc.Driver" url="${mysql-jdbc}" userid="${mysql-user}" password="${mysql-password}" encoding="utf8">
<classpath>
<pathelement location="WebContent/WEB-INF/lib/mysql-connector-java-5.1.45-bin.jar" />
</classpath>
<sort>
<fileset dir="db" includes="*.sql" />
</sort>
</sql>
</target>
<!-- targets for web-application processing -->
<target name="init">
<native2ascii encoding="UTF-8"
src="localization"
dest="WebContent/WEB-INF/classes"
includes="**/*.utf8" ext=".properties"/>
</target>
<taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask">
<classpath>
<fileset dir="${tomcat-lib}">
<include name="catalina-ant.jar" />
<include name="tomcat-coyote.jar" />
<include name="tomcat-util.jar" />
</fileset>
<fileset dir="${tomcat-bin}">
<include name="tomcat-juli.jar" />
</fileset>
</classpath>
</taskdef>
<target name="update" depends="init">
<reload url="${tomcat-manager}" username="${tomcat-user}" password="${tomcat-password}" path="${deploy-path}" />
</target>
</project>