diff options
Diffstat (limited to '')
-rw-r--r-- | branches/sca-equinox/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/branches/sca-equinox/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java b/branches/sca-equinox/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java index daad3da85a..93f1b01206 100644 --- a/branches/sca-equinox/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java +++ b/branches/sca-equinox/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java @@ -301,8 +301,6 @@ final class NodeLauncherUtil { Set<String> importPackages = new HashSet<String>(); for (String pkg : packages) { - exports.append(pkg); - exports.append(','); String importPackage = pkg; int index = pkg.indexOf(';'); @@ -313,6 +311,10 @@ final class NodeLauncherUtil { imports.append(importPackage); imports.append(','); importPackages.add(importPackage); + exports.append(pkg); + exports.append(','); + } else { + logger.warning("Duplicate package skipped: " + pkg); } } |