diff options
author | ramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-11 06:00:01 +0000 |
---|---|---|
committer | ramkumar <ramkumar@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-11 06:00:01 +0000 |
commit | e72643911426decd2899e405e34b43a72dc1d159 (patch) | |
tree | c6c6e8a6eadfc24ca4877f11c91214d0f401837b /branches/sca-java-1.4/tools | |
parent | f18c26db1d811864ea643b364ade66b7fdbbf065 (diff) |
Fixes for TUSCANY-2726
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@725590 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.4/tools')
-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.java | 13 |
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 b44dd16a91..202b3c3cec 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 @@ -131,7 +131,14 @@ public class AntGeneratorMojo extends AbstractMojo { * in the distribution hierarchy * @parameter expression="../.." */ - private String pathToRootDir; + private String pathToRootDir; + + /** + * The path to the webapp dir so that build.xml files can be generated at any level + * in the distribution hierarchy + * @parameter expression="src/main/webapp" + */ + private String pathToWebappDir; public void execute() throws MojoExecutionException { if ((buildDependencyFileOnly != null) && @@ -249,8 +256,8 @@ public class AntGeneratorMojo extends AbstractMojo { } else if (packaging.equals("war")) { // Build a WAR - pw.println(" <war destfile=\"target/" + project.getArtifactId() + ".war\" webxml=\"src/main/webapp/WEB-INF/web.xml\">"); - pw.println(" <fileset dir=\"src/main/webapp\"/>"); + pw.println(" <war destfile=\"target/" + project.getArtifactId() + ".war\" webxml=\"" + pathToWebappDir + "/WEB-INF/web.xml\">"); + pw.println(" <fileset dir=\"" + pathToWebappDir + "\"/>"); pw.println(" <lib refid=\"tuscany.jars\"/>"); pw.println(" <lib refid=\"3rdparty.jars\"/>"); pw.println(" <classes dir=\"target/classes\"/>"); |