incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asa...@apache.org
Subject svn commit: r1405082 - in /sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse: helper/SlingclipseHelper.java ui/wizards/ImportWizard.java
Date Fri, 02 Nov 2012 18:12:48 GMT
Author: asanso
Date: Fri Nov  2 18:12:47 2012
New Revision: 1405082

URL: http://svn.apache.org/viewvc?rev=1405082&view=rev
Log:
SLING-2636 - [Tooling] Add ability to Import from Sling Repository. Adding some import content
logic

Modified:
    sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/helper/SlingclipseHelper.java
    sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizard.java

Modified: sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/helper/SlingclipseHelper.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/helper/SlingclipseHelper.java?rev=1405082&r1=1405081&r2=1405082&view=diff
==============================================================================
--- sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/helper/SlingclipseHelper.java
(original)
+++ sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/helper/SlingclipseHelper.java
Fri Nov  2 18:12:47 2012
@@ -19,6 +19,7 @@ package org.apache.sling.slingclipse.hel
 public class SlingclipseHelper {
 	
 	public static final String JCR_ROOT= "jcr_root";
+	public static final String CONTENT_XML= ".content.xml";
 	
 	public static boolean isValidSlingProjectPath(String path){
 		//TODO verify only one occurrence of JCR_ROOT.		

Modified: sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizard.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizard.java?rev=1405082&r1=1405081&r2=1405082&view=diff
==============================================================================
--- sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizard.java
(original)
+++ sling/whiteboard/asanso/plugins/eclipse/slingclipse-plugin/src/org/apache/sling/slingclipse/ui/wizards/ImportWizard.java
Fri Nov  2 18:12:47 2012
@@ -165,7 +165,7 @@ public class ImportWizard extends Wizard
 			JSONObject jsonContent = new JSONObject(content);
 			jsonContent.append("tagName", Repository.JCR_ROOT);
 			String contentXml = JSONML.toString(jsonContent);		
-			createFile(path+"/.content.xml", contentXml, destinationPath);
+			createFile(path+"/"+SlingclipseHelper.CONTENT_XML, contentXml, destinationPath);
 		}
  		
 		for (Iterator<String> keys = json.keys(); keys.hasNext();) {



Mime
View raw message