From db2436883d3554c5eb8c96f49175496e6221bf22 Mon Sep 17 00:00:00 2001 From: michal Date: Fri, 9 May 2003 08:42:21 +0000 Subject: [PATCH] Smarter generation of .classpath file. ${basedir} prefix is cut off if present in any path. Default locations of source and destination folder are used instead of hardcoded paths like 'target/classes'. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113416 13f79535-47bb-0310-9956-ffa450edef68 --- eclipse/plugin.jelly | 92 +++++++++++++++++++++++++++--------- eclipse/xdocs/changes.xml | 6 +++ eclipse/xdocs/properties.xml | 9 +++- 3 files changed, 83 insertions(+), 24 deletions(-) diff --git a/eclipse/plugin.jelly b/eclipse/plugin.jelly index 7f56bced..abcc1bc8 100644 --- a/eclipse/plugin.jelly +++ b/eclipse/plugin.jelly @@ -48,34 +48,49 @@ + + + + - Creating ${basedir}/.classpath ... - - - - - + Creating ${basedir}/.classpath ... - + + + + + Cutting of basedir from sourceDirectory + + + + + + + + + + + Cutting of basedir from testSourceDirectory + + + + + + + - - - - - - - - - - ${pom.getPluginContext('maven-test-plugin').getVariable('plugin').getDependency('junit').getVersion()} + ${pom.getPluginContext('maven-test-plugin').getVariable('plugin').getDependency('junit').getVersion()} @@ -112,8 +127,39 @@ - + + + + + + + + Cutting of basedir from testOutputDir + + + + + + + + + + + + + Cutting of basedir from outputDir + + + + diff --git a/eclipse/xdocs/changes.xml b/eclipse/xdocs/changes.xml index 152a6d84..18a8f24b 100644 --- a/eclipse/xdocs/changes.xml +++ b/eclipse/xdocs/changes.xml @@ -7,6 +7,12 @@ + + Smarter generation of .classpath file. + ${basedir} prefix is cut off if present in any path. + Default Maven location of source and destination folder + are used. + Added dependency functionality between projects diff --git a/eclipse/xdocs/properties.xml b/eclipse/xdocs/properties.xml index b0850738..0bbd0e33 100644 --- a/eclipse/xdocs/properties.xml +++ b/eclipse/xdocs/properties.xml @@ -40,7 +40,7 @@ maven.eclipse.output.dir - Yes (default=target/classes) + 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 @@ -48,6 +48,13 @@ 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. + +

Note that you will need to defined a MAVEN_REPO Java