-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
56 lines (44 loc) · 1.41 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
<?xml version='1.0' encoding='iso-8859-1'?>
<project name="ivis-app-server" default="package">
<condition property="ant.maven.executable" value="mvn.bat">
<os family="windows"/>
</condition>
<property name="ant.maven.executable" value="mvn"/>
<property file="tomcat.properties"/>
<macrodef name="maven">
<attribute name="goal"/>
<sequential>
<exec executable="${ant.maven.executable}" failonerror="true">
<arg value="@{goal}"/>
</exec>
</sequential>
</macrodef>
<target name="clean">
<maven goal="clean"/>
</target>
<target name="package">
<maven goal="package"/>
</target>
<target name="tomcat-package" depends="package">
<delete dir="${tomcat.webapps.dir}/WEB-INF/lib"/>
<copy todir="${tomcat.webapps.dir}">
<fileset dir="target/ivisappserver"/>
</copy>
</target>
<target name="tomcat-quick-copy">
<copy todir="${tomcat.webapps.dir}">
<fileset dir="src/main/webapp"/>
</copy>
</target>
<target name="quick-copy-to-target">
<copy todir="target/ivisappserver">
<fileset dir="src/main/webapp" />
</copy>
</target>
<target name="tomcat-reload">
<maven goal="tomcat:reload"/>
</target>
<target name="idea">
<maven goal="idea:idea"/>
</target>
</project>