diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-13 01:05:13 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-13 01:05:13 +0000 |
commit | 0b71ac44e65047d21b5e2c23536a5f5763121719 (patch) | |
tree | d752ab638e39d3aa67a75aec817bb13803571277 | |
parent | 082c98834c4b22035690f9cf1f1f49cb156f282b (diff) |
Only mkdir for META-INF
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@694863 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/sca/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/LibraryBundleMojo.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/sca/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/LibraryBundleMojo.java b/java/sca/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/LibraryBundleMojo.java index 7b7d0d7e08..5fbd3008d2 100644 --- a/java/sca/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/LibraryBundleMojo.java +++ b/java/sca/tools/maven/maven-tuscany-bundle-plugin/src/main/java/org/apache/tuscany/tools/sca/tuscany/bundle/plugin/LibraryBundleMojo.java @@ -137,12 +137,13 @@ public class LibraryBundleMojo extends AbstractMojo { } Manifest mf = LibraryBundleUtil.libraryManifest(jarFiles, project.getName(), version, copyJars); - File file = new File(project.getBasedir(), "META-INF/MANIFEST.MF"); + File file = new File(project.getBasedir(), "META-INF"); + file.mkdir(); + file= new File(file, "MANIFEST.MF"); if (log.isDebugEnabled()) { log.debug("Generating " + file); } - file.mkdirs(); FileOutputStream fos = new FileOutputStream(file); mf.write(fos); fos.close(); |