Author: slaws
Date: Wed Dec 10 02:52:56 2008
New Revision: 725054
URL: http://svn.apache.org/viewvc?rev=725054&view=rev
Log:
TUSCANY-2739 - fix ant generator to allow the path to the distribution root
directory to be specified
Modified:
tuscany/branches/sca-java-1.4/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java
tuscany/branches/sca-java-1.4/tutorials/store/assets/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/catalog-mediation/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/catalog-webapp/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/domain/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/store-client/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/store-db/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/store-eu/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/store-market/build.xml
tuscany/branches/sca-java-1.4/tutorials/store/store-market/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/store-mashup/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/store-merger/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/store-supplier/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/store-test/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/store/pom.xml
tuscany/branches/sca-java-1.4/tutorials/store/web-services/pom.xml
Modified:
tuscany/branches/sca-java-1.4/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
---
tuscany/branches/sca-java-1.4/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java
(original)
+++
tuscany/branches/sca-java-1.4/tools/maven/maven-ant-generator/src/main/java/org/apache/tuscany/sca/tools/ant/generator/plugin/AntGeneratorMojo.java
Wed Dec 10 02:52:56 2008
@@ -124,7 +124,14 @@
* 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 @@
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 +"\"/>");
}
Modified: tuscany/branches/sca-java-1.4/tutorials/store/assets/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/assets/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/assets/pom.xml (original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/assets/pom.xml Wed Dec 10
02:52:56 2008
@@ -77,6 +77,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified:
tuscany/branches/sca-java-1.4/tutorials/store/catalog-mediation/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/catalog-mediation/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/catalog-mediation/pom.xml
(original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/catalog-mediation/pom.xml Wed
Dec 10 02:52:56 2008
@@ -79,6 +79,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/catalog-webapp/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/catalog-webapp/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/catalog-webapp/pom.xml
(original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/catalog-webapp/pom.xml Wed
Dec 10 02:52:56 2008
@@ -98,6 +98,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/domain/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/domain/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/domain/pom.xml (original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/domain/pom.xml Wed Dec 10
02:52:56 2008
@@ -159,6 +159,7 @@
<execution>
<configuration>
<mainClass>launch.LaunchTutorialAdmin</mainClass>
+ <pathToRootDir>../../..</pathToRootDir>
</configuration>
<goals>
<goal>generate</goal>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/store-client/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/store-client/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/store-client/pom.xml
(original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/store-client/pom.xml Wed Dec
10 02:52:56 2008
@@ -111,6 +111,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/store-db/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/store-db/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/store-db/pom.xml (original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/store-db/pom.xml Wed Dec 10
02:52:56 2008
@@ -65,6 +65,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/store-eu/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/store-eu/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/store-eu/pom.xml (original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/store-eu/pom.xml Wed Dec 10
02:52:56 2008
@@ -65,6 +65,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/store-market/build.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/store-market/build.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/store-market/build.xml
(original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/store-market/build.xml Wed
Dec 10 02:52:56 2008
@@ -45,10 +45,10 @@
</delete>
</target>
- <fileset id="tuscany.jars" dir="../../modules">
+ <fileset id="tuscany.jars" dir="../../../modules">
<include name="tuscany-sca-api-1.4.jar"/>
</fileset>
- <fileset id="3rdparty.jars" dir="../../lib">
+ <fileset id="3rdparty.jars" dir="../../../lib">
</fileset>
</project>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/store-market/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/store-market/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/store-market/pom.xml
(original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/store-market/pom.xml Wed Dec
10 02:52:56 2008
@@ -65,6 +65,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/store-mashup/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/store-mashup/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/store-mashup/pom.xml
(original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/store-mashup/pom.xml Wed Dec
10 02:52:56 2008
@@ -65,6 +65,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/store-merger/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/store-merger/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/store-merger/pom.xml
(original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/store-merger/pom.xml Wed Dec
10 02:52:56 2008
@@ -65,6 +65,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/store-supplier/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/store-supplier/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/store-supplier/pom.xml
(original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/store-supplier/pom.xml Wed
Dec 10 02:52:56 2008
@@ -65,6 +65,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/store-test/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/store-test/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/store-test/pom.xml (original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/store-test/pom.xml Wed Dec 10
02:52:56 2008
@@ -189,6 +189,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/store/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/store/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/store/pom.xml (original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/store/pom.xml Wed Dec 10
02:52:56 2008
@@ -65,6 +65,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>
Modified: tuscany/branches/sca-java-1.4/tutorials/store/web-services/pom.xml
URL:
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.4/tutorials/store/web-services/pom.xml?rev=725054&r1=725053&r2=725054&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.4/tutorials/store/web-services/pom.xml
(original)
+++ tuscany/branches/sca-java-1.4/tutorials/store/web-services/pom.xml Wed Dec
10 02:52:56 2008
@@ -65,6 +65,9 @@
<version>1.4</version>
<executions>
<execution>
+ <configuration>
+ <pathToRootDir>../../..</pathToRootDir>
+ </configuration>
<goals>
<goal>generate</goal>
</goals>