tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1104143 - /tuscany/sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyStartMojo.java
Date Tue, 17 May 2011 11:13:03 GMT
Author: antelder
Date: Tue May 17 11:13:03 2011
New Revision: 1104143

URL: http://svn.apache.org/viewvc?rev=1104143&view=rev
Log:
Update for latest domain node changes

Modified:
    tuscany/sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyStartMojo.java

Modified: tuscany/sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyStartMojo.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyStartMojo.java?rev=1104143&r1=1104142&r2=1104143&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyStartMojo.java
(original)
+++ tuscany/sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyStartMojo.java
Tue May 17 11:13:03 2011
@@ -32,10 +32,6 @@ import org.apache.maven.plugin.MojoFailu
 import org.apache.maven.project.MavenProject;
 import org.apache.tuscany.sca.Node;
 import org.apache.tuscany.sca.TuscanyRuntime;
-import org.apache.tuscany.sca.contribution.processor.ContributionReadException;
-import org.apache.tuscany.sca.monitor.ValidationException;
-import org.apache.tuscany.sca.runtime.ActivationException;
-import org.apache.tuscany.sca.shell.Shell;
 
 /**
  * Maven Mojo to start a Tuscany runtime and install the project as an SCA
@@ -134,11 +130,17 @@ public class TuscanyStartMojo extends Ab
             
             Node node = runtime.createNode(domainURI);
             for (String c : contributionList) {
+                String curi;
                 try {
-                    node.installContribution(null, c, null, null, true);
+                    curi = node.installContribution(null, c, null, null);
                 } catch (Exception e) {
                     throw new MojoExecutionException("Exception installing contribution",
e);
                 }
+                try {
+                    node.startDeployables(curi);
+                } catch (Exception e) {
+                    throw new MojoExecutionException("Exception starting deployables for
contribution " + curi, e);
+                }
             }
         }
     }



Mime
View raw message