Author: rfeng
Date: Fri May 29 01:14:04 2009
New Revision: 779810

URL: http://svn.apache.org/viewvc?rev=779810&view=rev
Log:
Should check source instead of target MF file

Modified:
    
tuscany/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java

Modified: 
tuscany/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java?rev=779810&r1=779809&r2=779810&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java
 (original)
+++ 
tuscany/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java
 Fri May 29 01:14:04 2009
@@ -607,10 +607,10 @@
         // 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);


Reply via email to