-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
54 lines (41 loc) · 1.34 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
<project name="contacts" basedir="." xmlns:artifact="urn:maven-artifact-ant" default="tomcat-deploy">
<property environment="env" />
<property name="webapp.name" value="contacts" />
<property name="project.dir" value="${basedir}" />
<import file="ant-macros.xml" />
<target name="clean">
<clean-deploy />
<echo message="${M2_HOME}"></echo>
<artifact:mvn pom="pom.xml" mavenHome="${M2_HOME}" fork="true">
<sysproperty key="maven.multiModuleProjectDirectory" path="${M2_HOME}"/>
<arg value="clean" />
<arg value="-e" />
</artifact:mvn>
</target>
<!-- Maven -->
<target name="update-eclipse-classpath">
<update-eclipse-classpath />
</target>
<target name="mvn-test">
<artifact:mvn pom="pom.xml" mavenHome="${M2_HOME}" fork="true">
<sysproperty key="maven.multiModuleProjectDirectory" path="${M2_HOME}"/>
<arg value="test" />
</artifact:mvn>
</target>
<target name="tomcat-deploy">
<tomcat-deploy />
</target>
<target name="tomcat-copy-minimal">
<tomcat-copy-minimal />
</target>
<target name="tomcat-reload">
<tomcat-deploy />
<touch-deploy />
</target>
<target name="dependency-tree">
<artifact:mvn pom="pom.xml" mavenHome="${M2_HOME}" fork="true">
<sysproperty key="maven.multiModuleProjectDirectory" path="${M2_HOME}"/>
<arg value="dependency:tree" />
</artifact:mvn>
</target>
</project>