From fa85696d2754f0a7bccf919a885e9bee8a9b7e86 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 31 Mar 2011 08:22:19 +0000 Subject: Update the approach to choosing what is the contribution so that a folder in the target directory named after the artifact or the target/classes folder is used over the packaged artifact. That means if you update a contribution project in an IDE like Eclipse the changes are still used even though eclipse doesn't rebuild teh jar git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1087210 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/tuscany/maven/plugin/TuscanyRunMojo.java | 4 ++++ 1 file changed, 4 insertions(+) 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 @@ -150,9 +150,13 @@ public class TuscanyRunMojo extends AbstractMojo { try { 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); -- cgit v1.2.3