svn-gvsig-desktop / tags / v2_0_0_Build_2057 / build / ant-tasks / maven-goals.xml @ 40774
History | View | Annotate | Download (4.57 KB)
1 | 29554 | cordinyana | <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 | 31302 | cordinyana | <import file="${gvSIG-maven-goals.basedir}/eclipse-tasks.xml" /> |
7 | 29554 | cordinyana | |
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 | 38932 | jjdelcerro | <svn><info path=".."/></svn> |
18 | <echo>svn: ${svn.info.repositoryRootUrl} rev ${svn.info.revision}</echo> |
||
19 | 29554 | cordinyana | <maven arg="compile" /> |
20 | </target>
|
||
21 | |||
22 | <target name="mvn-test" description="Launches unit tests"> |
||
23 | <maven arg="test" /> |
||
24 | </target>
|
||
25 | |||
26 | <target name="mvn-install" description="Compiles and installs"> |
||
27 | 38932 | jjdelcerro | <svn><info path=".."/></svn> |
28 | <echo>svn: ${svn.info.repositoryRootUrl} rev ${svn.info.revision}</echo> |
||
29 | 29554 | cordinyana | <maven arg="install" /> |
30 | </target>
|
||
31 | 33695 | cordinyana | |
32 | <target name="mvn-create-installer" |
||
33 | description="Compiles and generates an installer if the project is a gvSIG plugin"> |
||
34 | <maven arg="-P create-installer install" /> |
||
35 | </target>
|
||
36 | 29962 | vcaballero | |
37 | 37161 | cordinyana | <target name="mvn-create-installer-linux" description="Compiles and generates an installer for linux, if the plugin uses native libraries"> |
38 | <maven.lin arg="-P create-installer install" /> |
||
39 | </target>
|
||
40 | |||
41 | <target name="mvn-create-installer-windows" description="Compiles and generates an installer for windows, if the plugin uses native libraries"> |
||
42 | <maven.win arg="-P create-installer install" /> |
||
43 | </target>
|
||
44 | |||
45 | 29962 | vcaballero | <target name="mvn-install-ignore-tests" description="Compiles and installs and ignore tests"> |
46 | 38932 | jjdelcerro | <svn><info path=".."/></svn> |
47 | <echo>svn: ${svn.info.repositoryRootUrl} rev ${svn.info.revision}</echo> |
||
48 | 31302 | cordinyana | <maven arg="install -Dmaven.test.failure.ignore" /> |
49 | </target>
|
||
50 | 29962 | vcaballero | |
51 | 29554 | cordinyana | <target name="mvn-install-without-tests" |
52 | description="Compiles and installs without launching tests"> |
||
53 | 38932 | jjdelcerro | <svn><info path=".."/></svn> |
54 | <echo>svn: ${svn.info.repositoryRootUrl} rev ${svn.info.revision}</echo> |
||
55 | 29554 | cordinyana | <maven arg="-Dmaven.test.skip=true install" /> |
56 | </target>
|
||
57 | |||
58 | <target name="mvn-reinstall" |
||
59 | description="Performs a clean install"> |
||
60 | 38932 | jjdelcerro | <svn><info path=".."/></svn> |
61 | <echo>svn: ${svn.info.repositoryRootUrl} rev ${svn.info.revision}</echo> |
||
62 | 29554 | cordinyana | <maven arg="clean install" /> |
63 | </target>
|
||
64 | |||
65 | <target name="mvn-reinstall-without-tests" |
||
66 | description="Performs a clean install without launching tests"> |
||
67 | 38932 | jjdelcerro | <svn><info path=".."/></svn> |
68 | <echo>svn: ${svn.info.repositoryRootUrl} rev ${svn.info.revision}</echo> |
||
69 | 29554 | cordinyana | <maven arg="-Dmaven.test.skip=true clean install" /> |
70 | </target>
|
||
71 | |||
72 | <target name="mvn-deploy" |
||
73 | description="Compiles, installs and deploys"> |
||
74 | <maven arg="deploy" /> |
||
75 | </target>
|
||
76 | |||
77 | <target name="mvn-deploy-release" |
||
78 | description="Compiles, installs and deploys for release"> |
||
79 | <maven arg="-P release deploy" /> |
||
80 | </target>
|
||
81 | |||
82 | <target name="mvn-configure-eclipse-workspace" |
||
83 | description="Configures the eclipse workspace for maven integration"> |
||
84 | |||
85 | <input message="Eclipse workspace folder to configure?:" |
||
86 | addproperty="eclipse.workspace" |
||
87 | defaultvalue="${workspace_loc}" /> |
||
88 | |||
89 | <maven arg="-Declipse.workspace='${eclipse.workspace}' eclipse:add-maven-repo" /> |
||
90 | <mkdir dir="${eclipse.workspace}/.metadata/.plugins/org.eclipse.ui.workbench" /> |
||
91 | <copy
|
||
92 | file="${build.folder}/metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml" |
||
93 | todir="${eclipse.workspace}/.metadata/.plugins/org.eclipse.ui.workbench" /> |
||
94 | </target>
|
||
95 | |||
96 | <target name="mvn-eclipse-clean" |
||
97 | description="Cleans the maven generated eclipse project files"> |
||
98 | <maven arg="eclipse:clean" /> |
||
99 | </target>
|
||
100 | |||
101 | 31302 | cordinyana | <!-- Replaced by the target eclipse.project in eclipse-tasks.xml -->
|
102 | <!--
|
||
103 | 29554 | cordinyana | <target name="mvn-eclipse-eclipse"
|
104 | description="Generates an eclipse project configuration from the pom.xml">
|
||
105 | <maven arg="eclipse:eclipse" />
|
||
106 | </target>
|
||
107 | 31302 | cordinyana | -->
|
108 | <target name="mvn-eclipse-eclipse" |
||
109 | description="Generates an eclipse project configuration from the pom.xml"> |
||
110 | <maven arg="-P eclipse-project" /> |
||
111 | </target>
|
||
112 | |||
113 | 29554 | cordinyana | <target name="mvn-site" |
114 | description="Generates the project site documentation"> |
||
115 | <maven arg="site" /> |
||
116 | </target>
|
||
117 | 36432 | cordinyana | |
118 | <target name="mvn-any" |
||
119 | description="Asks for the parameters to launch maven with"> |
||
120 | <antform title="Launch maven" image="${gvsiglogo}" resetMessage="Cancel" |
||
121 | previousTarget="cancel"> |
||
122 | <textProperty label="mvn " property="mvn.parameters" |
||
123 | password="false" /> |
||
124 | </antform>
|
||
125 | <maven arg="${mvn.parameters}" /> |
||
126 | </target>
|
||
127 | 29554 | cordinyana | |
128 | </project> |