incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1159094 - /sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
Date Thu, 18 Aug 2011 08:55:51 GMT
Author: cziegeler
Date: Thu Aug 18 08:55:51 2011
New Revision: 1159094

URL: http://svn.apache.org/viewvc?rev=1159094&view=rev
Log:
SLING-2182 : Provide a way to specify additional bootstrap commands

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

Modified: sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
URL: http://svn.apache.org/viewvc/sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java?rev=1159094&r1=1159093&r2=1159094&view=diff
==============================================================================
--- sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
(original)
+++ sling/trunk/maven/maven-launchpad-plugin/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
Thu Aug 18 08:55:51 2011
@@ -195,13 +195,9 @@ public class PreparePackageMojo extends 
         final File origSlingCmd = new File(dest, "sling_bootstrap.txt");
         FileWriter writer = null;
 
-        /// and write or append
+        /// and write
         try {
-            if ( !origSlingCmd.exists() ) {
-                writer = new FileWriter(origSlingCmd);
-            } else {
-                writer = new FileWriter(origSlingCmd, true);
-            }
+            writer = new FileWriter(origSlingCmd);
 
             writer.write(additionalCmd);
         } catch (final IOException ioe) {



Mime
View raw message