cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1415226 - /cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java
Date Thu, 29 Nov 2012 16:04:29 GMT
Author: dkulp
Date: Thu Nov 29 16:04:28 2012
New Revision: 1415226

URL: http://svn.apache.org/viewvc?rev=1415226&view=rev
Log:
Map the attachment file names to not have spaces in them.

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

Modified: cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java
URL: http://svn.apache.org/viewvc/cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java?rev=1415226&r1=1415225&r2=1415226&view=diff
==============================================================================
--- cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java (original)
+++ cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java Thu Nov 29 16:04:28 2012
@@ -223,6 +223,7 @@ public class SiteExporter implements Run
         //forcePage("Navigation");
         //forcePage("Index");
         //forcePage("JavaDoc");
+        //forcePage("DOSGi Architecture");
         
         if (modifiedPages.isEmpty() && checkRSS()) {
             System.out.println("(" + spaceKey + ") No changes detected from RSS");
@@ -379,6 +380,7 @@ public class SiteExporter implements Run
                     callSvn("mkdir", file.getAbsolutePath());
                     file.mkdirs();
                 }
+                filename = filename.replace(' ', '+');
                 file = new File(file, filename);
                 boolean exists = file.exists();
                 FileOutputStream out = new FileOutputStream(file);
@@ -756,7 +758,7 @@ public class SiteExporter implements Run
         return xmlWriter;
     }
 
-    public static void main(String[] args) throws Exception {
+    public static void main(String[] args) throws Exception {        
         ListIterator<String> it = Arrays.asList(args).listIterator();
         List<String> files = new ArrayList<String>();
         boolean forceAll = false;



Mime
View raw message