incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stefane...@apache.org
Subject svn commit: r1521425 - /sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java
Date Tue, 10 Sep 2013 10:25:40 GMT
Author: stefanegli
Date: Tue Sep 10 10:25:40 2013
New Revision: 1521425

URL: http://svn.apache.org/r1521425
Log:
SLING-3009 : only create folders/files if they dont exist

Modified:
    sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java

Modified: sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java?rev=1521425&r1=1521424&r2=1521425&view=diff
==============================================================================
--- sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java
(original)
+++ sling/trunk/tooling/ide/eclipse-core/src/org/apache/sling/ide/eclipse/core/internal/SlingLaunchpadBehaviour.java
Tue Sep 10 10:25:40 2013
@@ -189,10 +189,14 @@ public class SlingLaunchpadBehaviour ext
 				final String launchMemento = MavenLaunchHelper.createMavenLaunchConfigMemento(project.getLocation().toString(),
 						"sling:install", "bundle", false, null);
 				IFolder dotLaunches = project.getFolder(".settings").getFolder(".launches");
-				dotLaunches.create(true, true, monitor);
+				if (!dotLaunches.exists()) {
+					dotLaunches.create(true, true, monitor);
+				}
 				IFile launchFile = dotLaunches.getFile("sling_install.launch");
 				InputStream in = new ByteArrayInputStream(launchMemento.getBytes());
-				launchFile.create(in, true, monitor);
+				if (!launchFile.exists()) {
+					launchFile.create(in, true, monitor);
+				}
 
 				ILaunchConfiguration launchConfig = 
 						DebugPlugin.getDefault().getLaunchManager().getLaunchConfiguration(launchFile);



Mime
View raw message