Return-Path: X-Original-To: apmail-sling-commits-archive@www.apache.org Delivered-To: apmail-sling-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9FEE971D for ; Tue, 3 Apr 2012 15:04:32 +0000 (UTC) Received: (qmail 94999 invoked by uid 500); 3 Apr 2012 15:04:32 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 94927 invoked by uid 500); 3 Apr 2012 15:04:32 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 94920 invoked by uid 99); 3 Apr 2012 15:04:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 15:04:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 15:04:28 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6499B23888EA; Tue, 3 Apr 2012 15:04:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1308967 - in /sling/whiteboard/cwiki-to-svn: ./ README pom.xml template/camel.cfg template/sling.cfg template/template.camel template/template.sling Date: Tue, 03 Apr 2012 15:04:07 -0000 To: commits@sling.apache.org From: bdelacretaz@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120403150407.6499B23888EA@eris.apache.org> Author: bdelacretaz Date: Tue Apr 3 15:04:06 2012 New Revision: 1308967 URL: http://svn.apache.org/viewvc?rev=1308967&view=rev Log: Experimenting with cwiki-to-svn rendering - page fetching and render works (no style yet) Added: sling/whiteboard/cwiki-to-svn/template/sling.cfg sling/whiteboard/cwiki-to-svn/template/template.sling - copied, changed from r1308955, sling/whiteboard/cwiki-to-svn/template/template.camel Removed: sling/whiteboard/cwiki-to-svn/template/camel.cfg sling/whiteboard/cwiki-to-svn/template/template.camel Modified: sling/whiteboard/cwiki-to-svn/ (props changed) sling/whiteboard/cwiki-to-svn/README sling/whiteboard/cwiki-to-svn/pom.xml Propchange: sling/whiteboard/cwiki-to-svn/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Tue Apr 3 15:04:06 2012 @@ -0,0 +1,11 @@ +target +content +bin +*.iml +*.ipr +*.iws +.settings +.project +.classpath +.externalToolBuilders +maven-eclipse.xml Modified: sling/whiteboard/cwiki-to-svn/README URL: http://svn.apache.org/viewvc/sling/whiteboard/cwiki-to-svn/README?rev=1308967&r1=1308966&r2=1308967&view=diff ============================================================================== --- sling/whiteboard/cwiki-to-svn/README (original) +++ sling/whiteboard/cwiki-to-svn/README Tue Apr 3 15:04:06 2012 @@ -1,14 +1,18 @@ += Experimenting with Camel's cwiki-to-svn tools for Sling. = -This is the start of an export utility to export the CAMEL -confluence spaces to the sites. To run this manually, you need to -have a copy of the CAMEL website checked out to a local directory: +To test this use -////TBD -////svn checkout https://svn-master.apache.org/repos/infra/websites/production/camel/content + mvn clean install exec:java -Build: -mvn install +Which downloads and renders the SLINGxSITE cwiki pages to +the content folder. +When prompted, enter valid cwiki credentials. + +Running several times only renders modified pages (unless flags +force something else, see main method). + += Optional configs = You will need to pass credentials for a valid confluence user. This can be done in one of two ways: @@ -31,11 +35,3 @@ should appear in /path/to/content/ In the confluence profile above, you could add a property like: /path/to/content to simplify passing that into the command. - -When you commit any changes in the content directory, the changes -should be "live" fairly quickly due to the svnpubsub process. - - - - - Modified: sling/whiteboard/cwiki-to-svn/pom.xml URL: http://svn.apache.org/viewvc/sling/whiteboard/cwiki-to-svn/pom.xml?rev=1308967&r1=1308966&r2=1308967&view=diff ============================================================================== --- sling/whiteboard/cwiki-to-svn/pom.xml (original) +++ sling/whiteboard/cwiki-to-svn/pom.xml Tue Apr 3 15:04:06 2012 @@ -91,7 +91,7 @@ ${svn.arg1} ${svn.arg2} - ${basedir}/template/camel.cfg + ${basedir}/template/sling.cfg Added: sling/whiteboard/cwiki-to-svn/template/sling.cfg URL: http://svn.apache.org/viewvc/sling/whiteboard/cwiki-to-svn/template/sling.cfg?rev=1308967&view=auto ============================================================================== --- sling/whiteboard/cwiki-to-svn/template/sling.cfg (added) +++ sling/whiteboard/cwiki-to-svn/template/sling.cfg Tue Apr 3 15:04:06 2012 @@ -0,0 +1,7 @@ +spaceKey:SLINGxSITE +pageCacheFile:cache/main.pageCache +templateName:template/template.sling +outputDir:/ +globalPages:Navigation +mainDivClass:main +breadCrumbRoot:Apache Sling Copied: sling/whiteboard/cwiki-to-svn/template/template.sling (from r1308955, sling/whiteboard/cwiki-to-svn/template/template.camel) URL: http://svn.apache.org/viewvc/sling/whiteboard/cwiki-to-svn/template/template.sling?p2=sling/whiteboard/cwiki-to-svn/template/template.sling&p1=sling/whiteboard/cwiki-to-svn/template/template.camel&r1=1308955&r2=1308967&rev=1308967&view=diff ============================================================================== --- sling/whiteboard/cwiki-to-svn/template/template.camel (original) +++ sling/whiteboard/cwiki-to-svn/template/template.sling Tue Apr 3 15:04:06 2012 @@ -1,4 +1,4 @@ - + - - - - - - - - - - - - - Apache Camel: $page.title - + Apache Sling: $page.title -
-
-
-
-
-
-
-
-
-
-
- -#set($content = $exporter.getPageContent("Banner", "banner-content")) -$content - -
- - -#set($content = $exporter.getPageContent("QuickLinks", "site-quicklinks")) -$content - -
- - - - - - - -
-#set($content = $page.getContent()) -$content - -
- - -
-
-
-
-
-
- -
-
-
-© 2004-2011 The Apache Software Foundation. -
-Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. -
-Graphic Design By Hiram -
- - - +
+#set($content = $page.getContent()) +$content +