summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.4/tools/maven
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-12-10 10:52:56 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-12-10 10:52:56 +0000
commit80c80a1067fdc885d55e0feb9eac7c3ad6611cd0 (patch)
tree0fcb688e8bd5d9eb8ab417c3919d124e4a497642 /branches/sca-java-1.4/tools/maven
parent9809f8dcf79ef1619eefea3e7b9b3d7abacdd007 (diff)
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@725054 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.4/tools/maven')
-rw-r--r--branches/sca-java-1.4/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/branches/sca-java-1.4/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java b/branches/sca-java-1.4/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.4/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java
+++ b/branches/sca-java-1.4/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(" <fileset id=\"tuscany.jars\" dir=\"../../modules\">");
+ pw.println(" <fileset id=\"tuscany.jars\" dir=\"" + pathToRootDir + "/modules\">");
for (String name: tuscanyModules) {
pw.println(" <include name=\"" + name +"\"/>");
}
pw.println(" </fileset>");
- pw.println(" <fileset id=\"3rdparty.jars\" dir=\"../../lib\">");
+ pw.println(" <fileset id=\"3rdparty.jars\" dir=\"" + pathToRootDir + "/lib\">");
for (String name: otherModules) {
pw.println(" <include name=\"" + name +"\"/>");
}