diff options
Diffstat (limited to '')
-rw-r--r-- | java/sca/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/TuscanyBundlePluginMojo.java | 5 | ||||
-rw-r--r-- | java/sca/tools/maven/pom.xml | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/java/sca/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/TuscanyBundlePluginMojo.java b/java/sca/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/TuscanyBundlePluginMojo.java index 64f99a38d3..726188a5d5 100644 --- a/java/sca/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/TuscanyBundlePluginMojo.java +++ b/java/sca/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/TuscanyBundlePluginMojo.java @@ -319,6 +319,7 @@ public class TuscanyBundlePluginMojo extends BundleAllPlugin { if (!bundleFile.exists()) return; + File processedFile = bundleFile; boolean retainManifestEntries = false; if (!artifact.getGroupId().equals("org.apache.tuscany.sca")) { // For pre-bundled 3rd party bundles, retain all OSGi manifest entries except Require-Bundle @@ -342,6 +343,8 @@ public class TuscanyBundlePluginMojo extends BundleAllPlugin { if (!bundleSymName.startsWith("org.apache.tuscany.sca")) { bundleSymName = "org.apache.tuscany.sca.3rdparty." + bundleSymName; attributes.putValue("Bundle-SymbolicName", bundleSymName); + + processedFile = new File(bundleFile.getParent(), "org.apache.tuscany.sca.3rdparty." + bundleFile.getName()); } String imports = (String)attributes.getValue("Import-Package"); @@ -408,7 +411,7 @@ public class TuscanyBundlePluginMojo extends BundleAllPlugin { jarOut.close(); out.close(); bundleFile.delete(); - FileOutputStream fileOut = new FileOutputStream(bundleFile); + FileOutputStream fileOut = new FileOutputStream(processedFile); fileOut.write(out.toByteArray()); fileOut.close(); diff --git a/java/sca/tools/maven/pom.xml b/java/sca/tools/maven/pom.xml index 7ee40aa2f7..fe08686bdf 100644 --- a/java/sca/tools/maven/pom.xml +++ b/java/sca/tools/maven/pom.xml @@ -43,6 +43,7 @@ <module>maven-java2wsdl</module> <module>maven-web-junit</module> <module>maven-wsdl2java</module> + <module>maven-tuscany-bundle-plugin</module> </modules> </profile> </profiles> |