cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1378609 - /cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java
Date Wed, 29 Aug 2012 15:32:42 GMT
Author: dkulp
Date: Wed Aug 29 15:32:41 2012
New Revision: 1378609

URL: http://svn.apache.org/viewvc?rev=1378609&view=rev
Log:
Map links for new pages to appropriate URL

Modified:
    cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java

Modified: cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java
URL: http://svn.apache.org/viewvc/cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java?rev=1378609&r1=1378608&r2=1378609&view=diff
==============================================================================
--- cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java (original)
+++ cxf/web/src/main/java/org/apache/cxf/cwiki/ConfluenceCleanupWriter.java Wed Aug 29 15:32:41
2012
@@ -108,6 +108,9 @@ public class ConfluenceCleanupWriter ext
                 dirName = dirName.substring(0, dirName.lastIndexOf(".")) + ".data";
 
                 newAtts.addMapping("href", dirName + href);
+            } else if (href != null && href.contains("/confluence/pages/createpage.action"))
{
+                System.out.println("Adding createpage link for " + href + " from " + page.getTitle());
+                newAtts.addMapping("href", SiteExporter.HOST + href);
             } else if (href != null 
                 && (href.startsWith("http://")
                     || href.startsWith("https://"))) {



Mime
View raw message