diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-29 01:14:04 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-29 01:14:04 +0000 |
commit | ac70694a535a3d96d02c8b051414b1514a9d7af5 (patch) | |
tree | d6d8d4a2e225cea3ba830630de9a887b07cff8a3 /java/sca/modules/node-launcher-equinox/src/main | |
parent | 169777e33763d7a38fdaad4449d168c12832a623 (diff) |
Should check source instead of target MF file
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@779810 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/node-launcher-equinox/src/main')
-rw-r--r-- | java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java b/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java index 5e7d0c72ad..35dcd9bd5f 100644 --- a/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java +++ b/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java @@ -607,10 +607,10 @@ final class NodeLauncherUtil { // initially outside of target/classes, at the root of the project. if (location.endsWith("/target/classes/")) { File targetManifest = new File(target, "META-INF/MANIFEST.MF"); - if (!targetManifest.isFile()) { + File sourceManifest = new File(target.getParentFile().getParentFile(), "META-INF/MANIFEST.MF"); + if (!sourceManifest.isFile()) { return; } - File sourceManifest = new File(target.getParentFile().getParentFile(), "META-INF/MANIFEST.MF"); targetManifest.getParentFile().mkdirs(); OutputStream os = new FileOutputStream(targetManifest); InputStream is = new FileInputStream(sourceManifest); |