This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag maven-launchpad-plugin-2.3.4
in repository 
https://gitbox.apache.org/repos/asf/sling-maven-launchpad-plugin.git

commit 605a92f06c0940bf03c54c12212482b811baaa15
Author: Justin Edelson <[email protected]>
AuthorDate: Tue Oct 16 20:40:40 2012 +0000

    SLING-2620 - creating target directories if they don't exist already 
(thanks Minto van der Sluis for the patch!)
    
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/maven/maven-launchpad-plugin@1398986
 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/sling/maven/projectsupport/AttachBundleListMojo.java | 1 +
 .../apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java   | 1 +
 2 files changed, 2 insertions(+)

diff --git 
a/src/main/java/org/apache/sling/maven/projectsupport/AttachBundleListMojo.java 
b/src/main/java/org/apache/sling/maven/projectsupport/AttachBundleListMojo.java
index a64d84f..6f40dc0 100644
--- 
a/src/main/java/org/apache/sling/maven/projectsupport/AttachBundleListMojo.java
+++ 
b/src/main/java/org/apache/sling/maven/projectsupport/AttachBundleListMojo.java
@@ -61,6 +61,7 @@ public class AttachBundleListMojo extends 
AbstractUsingBundleListMojo {
     protected void executeWithArtifacts() throws MojoExecutionException, 
MojoFailureException {
         FileWriter fw = null;
         try {
+            this.outputFile.getParentFile().mkdirs();
             fw = new FileWriter(outputFile);
             writer.write(fw, getInitializedBundleList());
             projectHelper.attachArtifact(project, 
AttachPartialBundleListMojo.TYPE, AttachPartialBundleListMojo.CLASSIFIER, 
outputFile);
diff --git 
a/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java
 
b/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java
index c157a80..f909a35 100644
--- 
a/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java
+++ 
b/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java
@@ -97,6 +97,7 @@ public class AttachPartialBundleListMojo extends 
AbstractBundleListMojo {
 
         final BundleListXpp3Writer writer = new BundleListXpp3Writer();
         try {
+            this.bundleListOutput.getParentFile().mkdirs();
             writer.write(new FileWriter(bundleListOutput), 
initializedBundleList);
         } catch (IOException e) {
             throw new MojoExecutionException("Unable to write bundle list", e);

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to