incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1398986 - in /sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport: AttachBundleListMojo.java AttachPartialBundleListMojo.java
Date Tue, 16 Oct 2012 20:40:40 GMT
Author: justin
Date: Tue Oct 16 20:40:40 2012
New Revision: 1398986

URL: http://svn.apache.org/viewvc?rev=1398986&view=rev
Log:
SLING-2620 - creating target directories if they don't exist already

Modified:
    sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachBundleListMojo.java
    sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java

Modified: sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachBundleListMojo.java
URL: http://svn.apache.org/viewvc/sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachBundleListMojo.java?rev=1398986&r1=1398985&r2=1398986&view=diff
==============================================================================
--- sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachBundleListMojo.java
(original)
+++ sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachBundleListMojo.java
Tue Oct 16 20:40:40 2012
@@ -61,6 +61,7 @@ public class AttachBundleListMojo extend
     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);

Modified: sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java
URL: http://svn.apache.org/viewvc/sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java?rev=1398986&r1=1398985&r2=1398986&view=diff
==============================================================================
--- sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java
(original)
+++ sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/AttachPartialBundleListMojo.java
Tue Oct 16 20:40:40 2012
@@ -97,6 +97,7 @@ public class AttachPartialBundleListMojo
 
         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);



Mime
View raw message