svn-gvsig-desktop / tags / v2_0_0_Build_2038 / build / ant-tasks / maven-goals.xml @ 37137
History | View | Annotate | Download (3.45 KB)
1 |
<project name="gvSIG-maven-goals" default="mvn-install"> |
---|---|
2 |
|
3 |
<dirname property="gvSIG-maven-goals.basedir" |
4 |
file="${ant.file.gvSIG-maven-goals}" /> |
5 |
<import file="${gvSIG-maven-goals.basedir}/ant-tasks-config.xml" /> |
6 |
<import file="${gvSIG-maven-goals.basedir}/eclipse-tasks.xml" /> |
7 |
|
8 |
<description>
|
9 |
Ant tasks and macros to interact with maven |
10 |
</description>
|
11 |
|
12 |
<target name="mvn-clean" description="Cleans all artifacts"> |
13 |
<maven arg="clean" /> |
14 |
</target>
|
15 |
|
16 |
<target name="mvn-compile" description="Compiles all source code"> |
17 |
<maven arg="compile" /> |
18 |
</target>
|
19 |
|
20 |
<target name="mvn-test" description="Launches unit tests"> |
21 |
<maven arg="test" /> |
22 |
</target>
|
23 |
|
24 |
<target name="mvn-install" description="Compiles and installs"> |
25 |
<maven arg="install" /> |
26 |
</target>
|
27 |
|
28 |
<target name="mvn-create-installer" |
29 |
description="Compiles and generates an installer if the project is a gvSIG plugin"> |
30 |
<maven arg="-P create-installer install" /> |
31 |
</target>
|
32 |
|
33 |
<target name="mvn-install-ignore-tests" description="Compiles and installs and ignore tests"> |
34 |
<maven arg="install -Dmaven.test.failure.ignore" /> |
35 |
</target>
|
36 |
|
37 |
<target name="mvn-install-without-tests" |
38 |
description="Compiles and installs without launching tests"> |
39 |
<maven arg="-Dmaven.test.skip=true install" /> |
40 |
</target>
|
41 |
|
42 |
<target name="mvn-reinstall" |
43 |
description="Performs a clean install"> |
44 |
<maven arg="clean install" /> |
45 |
</target>
|
46 |
|
47 |
<target name="mvn-reinstall-without-tests" |
48 |
description="Performs a clean install without launching tests"> |
49 |
<maven arg="-Dmaven.test.skip=true clean install" /> |
50 |
</target>
|
51 |
|
52 |
<target name="mvn-deploy" |
53 |
description="Compiles, installs and deploys"> |
54 |
<maven arg="deploy" /> |
55 |
</target>
|
56 |
|
57 |
<target name="mvn-deploy-release" |
58 |
description="Compiles, installs and deploys for release"> |
59 |
<maven arg="-P release deploy" /> |
60 |
</target>
|
61 |
|
62 |
<target name="mvn-configure-eclipse-workspace" |
63 |
description="Configures the eclipse workspace for maven integration"> |
64 |
|
65 |
<input message="Eclipse workspace folder to configure?:" |
66 |
addproperty="eclipse.workspace" |
67 |
defaultvalue="${workspace_loc}" /> |
68 |
|
69 |
<maven arg="-Declipse.workspace='${eclipse.workspace}' eclipse:add-maven-repo" /> |
70 |
<mkdir dir="${eclipse.workspace}/.metadata/.plugins/org.eclipse.ui.workbench" /> |
71 |
<copy
|
72 |
file="${build.folder}/metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml" |
73 |
todir="${eclipse.workspace}/.metadata/.plugins/org.eclipse.ui.workbench" /> |
74 |
</target>
|
75 |
|
76 |
<target name="mvn-eclipse-clean" |
77 |
description="Cleans the maven generated eclipse project files"> |
78 |
<maven arg="eclipse:clean" /> |
79 |
</target>
|
80 |
|
81 |
<!-- Replaced by the target eclipse.project in eclipse-tasks.xml -->
|
82 |
<!--
|
83 |
<target name="mvn-eclipse-eclipse"
|
84 |
description="Generates an eclipse project configuration from the pom.xml">
|
85 |
<maven arg="eclipse:eclipse" />
|
86 |
</target>
|
87 |
-->
|
88 |
<target name="mvn-eclipse-eclipse" |
89 |
description="Generates an eclipse project configuration from the pom.xml"> |
90 |
<maven arg="-P eclipse-project" /> |
91 |
</target>
|
92 |
|
93 |
<target name="mvn-site" |
94 |
description="Generates the project site documentation"> |
95 |
<maven arg="site" /> |
96 |
</target>
|
97 |
|
98 |
<target name="mvn-any" |
99 |
description="Asks for the parameters to launch maven with"> |
100 |
<antform title="Launch maven" image="${gvsiglogo}" resetMessage="Cancel" |
101 |
previousTarget="cancel"> |
102 |
<textProperty label="mvn " property="mvn.parameters" |
103 |
password="false" /> |
104 |
</antform>
|
105 |
<maven arg="${mvn.parameters}" /> |
106 |
</target>
|
107 |
|
108 |
</project>
|