forked from pshirshov/youji-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
82 lines (70 loc) · 2.86 KB
/
build.xml
File metadata and controls
82 lines (70 loc) · 2.86 KB
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
75
76
77
78
79
80
81
82
<project name="youji"
xmlns:artifact="antlib:org.apache.maven.artifact.ant"
xmlns:ac="antlib:net.sf.antcontrib">
<property name="project.pom" location="pom.xml" />
<target name="resolve" description="--> retrieve dependencies with maven">
<ac:for param="pomfile">
<path>
<fileset dir=".">
<include name="**/pom.xml"/>
</fileset>
</path>
<sequential>
<artifact:dependencies filesetId="dependency.fileset">
<pom file="@{pomfile}" />
</artifact:dependencies>
<!--copy todir="${user.home}/.ant/lib" verbose="true">
<fileset refid="dependency.fileset" />
<mapper type="flatten" />
</copy-->
</sequential>
</ac:for>
</target>
<target name="--mvn.clean">
<artifact:mvn pom="${project.pom}">
<arg value="clean"/>
</artifact:mvn>
</target>
<target name="--mvn.deploy">
<artifact:mvn pom="${project.pom}">
<arg value="deploy"/>
</artifact:mvn>
</target>
<target name="--mvn.package">
<artifact:mvn pom="${project.pom}">
<arg value="package"/>
</artifact:mvn>
</target>
<target name="--mvn.compile">
<artifact:mvn pom="${project.pom}">
<arg value="compile"/>
</artifact:mvn>
</target>
<target name="all" depends="--mvn.clean,--mvn.compile,--mvn.package,--mvn.deploy">
</target>
<!--
http://ptrthomas.wordpress.com/2009/03/08/why-you-should-use-the-maven-ant-tasks-instead-of-maven-or-ivy/
-->
<!--target name="mvn-init" unless="compile.classpath" xmlns:artifact="urn:maven-artifact-ant">
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"
classpath="lib/maven-ant-tasks.jar"/>
<condition property="maven.repo.local" value="${maven.repo.local}" else="${user.home}/.m2/repository">
<isset property="maven.repo.local"/>
</condition>
<echo>maven.repo.local=${maven.repo.local}</echo>
<artifact:localRepository id="local.repository" path="${maven.repo.local}"/>
<artifact:pom file="${project.pom}" id="maven.project"/>
<artifact:dependencies pathId="compile.classpath" filesetId="compile.fileset" useScope="compile">
<pom refid="maven.project"/>
<localRepository refid="local.repository"/>
</artifact:dependencies>
<artifact:dependencies pathId="test.classpath" filesetId="test.fileset" useScope="test">
<pom refid="maven.project"/>
<localRepository refid="local.repository"/>
</artifact:dependencies>
<artifact:dependencies pathId="runtime.classpath" filesetId="runtime.fileset" useScope="runtime">
<pom refid="maven.project"/>
<localRepository refid="local.repository"/>
</artifact:dependencies>
</target-->
</project>