diff options
-rw-r--r-- | java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java | 6 |
1 files changed, 6 insertions, 0 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 d51fd0a278..5e7d0c72ad 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 @@ -598,12 +598,18 @@ final class NodeLauncherUtil { */ static void fixupBundle(String location) throws BundleException, IOException { File target = file(new URL(location)); + if (!target.exists()) { + return; + } location = target.toURI().toString(); // For development mode, copy the MANIFEST.MF file to the bundle location as it's // 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()) { + return; + } File sourceManifest = new File(target.getParentFile().getParentFile(), "META-INF/MANIFEST.MF"); targetManifest.getParentFile().mkdirs(); OutputStream os = new FileOutputStream(targetManifest); |