-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.xml
27 lines (24 loc) · 1.01 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
<?xml version="1.0" ?>
<project name="CodecharacterServer" default="deploy">
<target name="init">
<property file='build.properties'/>
</target>
<target name="compile" description="Generate war">
<exec dir="." executable="sh">
<arg line="-c 'mvn clean install -Djvm.options=\'${jvm.options}\' -Dmaven.test.skip=true'" />
</exec>
</target>
<target name='deploy' depends='init, compile' description='Copy the war file to the app server'>
<delete verbose='true' dir='${tomcat.dir}/webapps/server' failonerror="false"/>
<delete verbose='true' dir='${tomcat.dir}/webapps/server.war' failonerror="false"/>
<copy
tofile='${tomcat.dir}/webapps/ROOT.war'
file='target/server-0.0.1-SNAPSHOT.war'
/>
</target>
<target name='run' depends='deploy' description='Run tomcat server'>
<exec dir="${tomcat.dir}/bin" executable="sh">
<arg line="-c './catalina.sh run'" />
</exec>
</target>
</project>