From 6605f26f3c9899005d672b9f87031c07e834ecb4 Mon Sep 17 00:00:00 2001 From: bwalding Date: Mon, 28 Jul 2003 09:27:16 +0000 Subject: [PATCH] Extract jelly from plugin.jelly into classpath.jelly and project.jelly PR:MAVEN-628 git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113741 13f79535-47bb-0310-9956-ffa450edef68 --- eclipse/plugin.jelly | 164 +----------------- .../templates/classpath.jelly | 138 +++++++++++++++ .../plugin-resources/templates/project.jelly | 33 ++++ 3 files changed, 176 insertions(+), 159 deletions(-) create mode 100644 eclipse/src/plugin-resources/templates/classpath.jelly create mode 100644 eclipse/src/plugin-resources/templates/project.jelly diff --git a/eclipse/plugin.jelly b/eclipse/plugin.jelly index 7a6209dc..9c08ef49 100644 --- a/eclipse/plugin.jelly +++ b/eclipse/plugin.jelly @@ -23,32 +23,10 @@ description="Generate Eclipse .project file"> Creating ${basedir}/.project ... - - - ${pom.artifactId} - ${pom.description} - - - - - ${lib.dependency.artifactId} - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - + + @@ -59,142 +37,10 @@ description="Generate Eclipse .classpath file"> Creating ${basedir}/.classpath ... + + + - - - - - - - - - - - - - - - Contains JUnit tests - - - - - - - - - - - - - - - - - - - - - Setting compile of ${testSrcDir} to ${testOutputDir} - - - - - - - - - ${pom.getPluginContext('maven-test-plugin').getVariable('plugin').getDependency('junit').getVersion()} - - - - - - - ${maven.eclipse.junit} - - - - - - - - - - - - - - - - - - Contains Cactus Tests! - - - Cutting off basedir from Cactus source directory - - - - - - - ${pom.getPluginContext('maven-cactus-plugin').getVariable('plugin').getDependency('cactus').getVersion()} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Setting default output directory to ${outputDir} - - - - - diff --git a/eclipse/src/plugin-resources/templates/classpath.jelly b/eclipse/src/plugin-resources/templates/classpath.jelly new file mode 100644 index 00000000..5ba8d3ab --- /dev/null +++ b/eclipse/src/plugin-resources/templates/classpath.jelly @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + Contains JUnit tests + + + + + + + + + + + + + + + + + + + + + Setting compile of ${testSrcDir} to ${testOutputDir} + + + + + + ${pom.getPluginContext('maven-test-plugin').getVariable('plugin').getDependency('junit').getVersion()} + + + + + + + ${maven.eclipse.junit} + + + + + + + + + + + + + + + + + + Contains Cactus Tests! + + + Cutting off basedir from Cactus source directory + + + + + + + ${pom.getPluginContext('maven-cactus-plugin').getVariable('plugin').getDependency('cactus').getVersion()} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Setting default output directory to ${outputDir} + + + + \ No newline at end of file diff --git a/eclipse/src/plugin-resources/templates/project.jelly b/eclipse/src/plugin-resources/templates/project.jelly new file mode 100644 index 00000000..e594ef01 --- /dev/null +++ b/eclipse/src/plugin-resources/templates/project.jelly @@ -0,0 +1,33 @@ + + + + + ${pom.artifactId} + ${pom.description} + + + + + ${lib.dependency.artifactId} + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + + + \ No newline at end of file