From d708e33b18df952e7c5ff935277564656b427ac7 Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 12 Dec 2008 11:55:29 +0000 Subject: TUSCANY-2739 - fix ant generator to allow the path to the distribution root directory to be specified git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@725975 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/tools/ant/generator/plugin/AntGeneratorMojo.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'branches/sca-java-1.x/tools') diff --git a/branches/sca-java-1.x/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java b/branches/sca-java-1.x/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java index d7b80bd67c..b44dd16a91 100644 --- a/branches/sca-java-1.x/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java +++ b/branches/sca-java-1.x/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java @@ -124,7 +124,14 @@ public class AntGeneratorMojo extends AbstractMojo { * The build-dependency.xml file to generate. * @parameter expression="${basedir}/build-dependency.xml" */ - private String buildDependencyFile; + private String buildDependencyFile; + + /** + * The path to the root dir so that build.xml files can be generated at any level + * in the distribution hierarchy + * @parameter expression="../.." + */ + private String pathToRootDir; public void execute() throws MojoExecutionException { if ((buildDependencyFileOnly != null) && @@ -309,12 +316,12 @@ public class AntGeneratorMojo extends AbstractMojo { Collections.sort(otherModules); // Generate filesets for the tuscany and 3rd party dependencies - pw.println(" "); + pw.println(" "); for (String name: tuscanyModules) { pw.println(" "); } pw.println(" "); - pw.println(" "); + pw.println(" "); for (String name: otherModules) { pw.println(" "); } -- cgit v1.2.3