chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1182247 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java
Date Wed, 12 Oct 2011 08:00:30 GMT
Author: jens
Date: Wed Oct 12 08:00:30 2011
New Revision: 1182247

URL: http://svn.apache.org/viewvc?rev=1182247&view=rev
Log:
change file name extensions to xml [CMIS-443]

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java?rev=1182247&r1=1182246&r2=1182247&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java
Wed Oct 12 08:00:30 2011
@@ -365,10 +365,10 @@ public class Main {
     }
     
     private void renameFiles(String name) {
-        String fileNameInReq = String.format("%05d-request.xml", requestCounter);
-        String fileNameInResp = String.format("%05d-response.xml", requestCounter);
+        String fileNameInReq = String.format("%05d-request.log", requestCounter);
+        String fileNameInResp = String.format("%05d-response.log", requestCounter);
         File in = new File(logDir + fileNameInReq);
-        File out = new File(name + "-request.log");
+        File out = new File(name + "-request.xml");
         if (out.exists())
             out.delete();
         boolean ok = in.renameTo(out);
@@ -378,7 +378,7 @@ public class Main {
             LOG.warn("Renaming file " + in.getAbsolutePath() + " to " + out.getAbsolutePath()
+ " failed.");
 
         in = new File(logDir + fileNameInResp);
-        out = new File(name + "-response.log");
+        out = new File(name + "-response.xml");
         if (out.exists())
             out.delete();
         ok = in.renameTo(out);



Mime
View raw message