From fdd0eebc515cf9a28b5636c847530619db630345 Mon Sep 17 00:00:00 2001 From: dion Date: Thu, 6 May 2004 05:43:13 +0000 Subject: [PATCH] Added maven.eclipse.buildcommands and maven.eclipse.projectnatures Added tests for them PR: MPECLIPSE-25 Obtained from: Miguel Griffa Submitted by: Miguel Griffa Reviewed by: dIon Gillard git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115194 13f79535-47bb-0310-9956-ffa450edef68 --- .../plugin-resources/templates/project.jelly | 13 +++- eclipse/src/plugin-test/maven.xml | 72 ++++++++++++++++-- eclipse/src/plugin-test/project.xml | 7 ++ eclipse/xdocs/changes.xml | 4 + eclipse/xdocs/properties.xml | 73 ++++++++++++------- 5 files changed, 134 insertions(+), 35 deletions(-) diff --git a/eclipse/src/plugin-resources/templates/project.jelly b/eclipse/src/plugin-resources/templates/project.jelly index 0a4a4e42..17401fcc 100644 --- a/eclipse/src/plugin-resources/templates/project.jelly +++ b/eclipse/src/plugin-resources/templates/project.jelly @@ -42,10 +42,21 @@ + ${maven.eclipse.buildcommands} + + + ${command} + + + org.eclipse.jdt.core.javanature + ${maven.eclipse.projectnatures} + + ${nature} + - \ No newline at end of file + diff --git a/eclipse/src/plugin-test/maven.xml b/eclipse/src/plugin-test/maven.xml index 99a94761..eb710449 100644 --- a/eclipse/src/plugin-test/maven.xml +++ b/eclipse/src/plugin-test/maven.xml @@ -17,18 +17,78 @@ --> + xmlns:u="jelly:util" + xmlns:x="jelly:xml"> - + + + + + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse/src/plugin-test/project.xml b/eclipse/src/plugin-test/project.xml index d614368f..6c7858bf 100644 --- a/eclipse/src/plugin-test/project.xml +++ b/eclipse/src/plugin-test/project.xml @@ -53,5 +53,12 @@ + + + commons-jelly + commons-jelly-tags-xml + 20030211.142705 + + diff --git a/eclipse/xdocs/changes.xml b/eclipse/xdocs/changes.xml index 791bfd42..7c19407b 100644 --- a/eclipse/xdocs/changes.xml +++ b/eclipse/xdocs/changes.xml @@ -25,6 +25,10 @@ + + Add maven.eclipse.buildcommands and maven.eclipse.projectnatures properties, docs + and test cases + use assert taglib for testing Honour sourceModifications in classpath file used container for JRE classpath diff --git a/eclipse/xdocs/properties.xml b/eclipse/xdocs/properties.xml index affb14e5..23b6d672 100644 --- a/eclipse/xdocs/properties.xml +++ b/eclipse/xdocs/properties.xml @@ -33,17 +33,17 @@ maven.eclipse.workspace Yes - Location of the Eclipse - workspace that holds your configuration and source. -

- On Windows, this will be the workspace directory - under your eclipse installation. For example, if you installed - eclipse into c:\eclipse, the workspace is - c:\eclipse\workspace. -

-

- If this parameter is specified, the - external-tools goal will use it as the destination to copy the generated file. + Location of the Eclipse + workspace that holds your configuration and source. +

+ On Windows, this will be the workspace directory + under your eclipse installation. For example, if you installed + eclipse into c:\eclipse, the workspace is + c:\eclipse\workspace. +

+

+ If this parameter is specified, the + external-tools goal will use it as the destination to copy the generated file.

@@ -51,44 +51,61 @@ maven.eclipse.junit Yes (default=3.8.1) - The version of JUnit you want added to your project. If this - property is set to none then JUnit will not be added to your - build classpath. + The version of JUnit you want added to your project. If this + property is set to none then JUnit will not be added to your + build classpath. maven.eclipse.output.dir Yes (default=${maven.build.dest) - The directory to which Eclipse should output its classes. - By default this is the same directory as Maven generates its code - however this can be changed so that maven clean - does not interfere with Eclipse's build. + The directory to which Eclipse should output its classes. + By default this is the same directory as Maven generates its code + however this can be changed so that maven clean + does not interfere with Eclipse's build. maven.eclipse.test.output.dir Yes (default=${maven.test.dest} defined in test plugin) - The directory to which Eclipse should output its test classes. + The directory to which Eclipse should output its test classes. maven.eclipse.classpath.include Yes - Comma delimited list of additional directories to include in - the classpath, like src/conf. + Comma delimited list of additional directories to include in + the classpath, like src/conf. + + + + maven.eclipse.buildcommands + Yes + + Comma delimited list of additional build commands + to include in the project description file. + + + + maven.eclipse.projectnatures + Yes + + Comma delimited list of additional project natures + to include in the project description file. These natures + will be added after the java nature. -

- Note that you will need to defined a MAVEN_REPO Java - Classpath variable in Eclipse. This is done by selecting the Window - menu, then Preferences. In the dialog box, select the Java node and - then Classpath Variables. Create a new variable named - MAVEN_REPO that points to your local Maven repository. -

+

+ Note that you will need to defined a MAVEN_REPO Java + Classpath variable in Eclipse. This is done by selecting the Window + menu, then Preferences. In the dialog box, select the Java node and + then Classpath Variables. Create a new variable named + MAVEN_REPO that points to your local Maven repository. +