diff options
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyRunMojo.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyRunMojo.java b/sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyRunMojo.java index 5f84a95c52..d5cce76bc2 100644 --- a/sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyRunMojo.java +++ b/sca-java-2.x/trunk/maven/maven-tuscany-plugin/src/main/java/org/apache/tuscany/maven/plugin/TuscanyRunMojo.java @@ -151,8 +151,12 @@ public class TuscanyRunMojo extends AbstractMojo { File contributionFile = new File(buildDirectory.getParent(), finalName.getName());
if (!contributionFile.exists()) {
+ contributionFile = new File(buildDirectory.getParent(), "classes");
+ }
+ if (!contributionFile.exists()) {
contributionFile = new File(buildDirectory.getParent(), finalName.getName() + packaging);
}
+
String contribution = contributionFile.toURI().toURL().toString();
getLog().info("Project contribution: " + contribution);
cs.add(contribution);
|