diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-21 16:48:59 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-21 16:48:59 +0000 |
commit | b0926c9fe3864f25813a1b7b4e25ae26e9bd4788 (patch) | |
tree | 3899c9c9c92d00cd46a67144e0036ec4911f0ba6 /java/sca/tools/maven | |
parent | 6bc14c268c6f2440fae9690d1856d0f0c9154ad8 (diff) |
Make sure the classpath is relative to the "startup" folder
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@736338 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/tools/maven')
-rw-r--r-- | java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java b/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java index 2ef9a53eae..eb9935701f 100644 --- a/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java +++ b/java/sca/tools/maven/maven-bundle-plugin/src/main/java/org/apache/tuscany/sca/tools/bundle/plugin/ModuleBundlesBuildMojo.java @@ -368,15 +368,16 @@ public class ModuleBundlesBuildMojo extends AbstractMojo { } if (generateManifestJar) { - File startup = new File(new File(project.getBuild().getDirectory()), "startup"); + File startup = new File(root, "../startup"); startup.mkdir(); File mfJar = new File(startup, project.getArtifactId() + "-manifest.jar"); log.info("Generating manifest jar: " + mfJar); FileOutputStream fos = new FileOutputStream(mfJar); Manifest mf = new Manifest(); StringBuffer cp = new StringBuffer(); + String path = "../" + root.getName(); for (String jar : jarNames) { - cp.append(jar).append(','); + cp.append(path).append('/').append(jar).append(','); } if (cp.length() > 0) { cp.deleteCharAt(cp.length() - 1); |