Revision: 18167
          http://sourceforge.net/p/gate/code/18167
Author:   johann_p
Date:     2014-07-08 18:31:07 +0000 (Tue, 08 Jul 2014)
Log Message:
-----------
Fix the name of the output handler class for writing standard
GATE xml format

Modified Paths:
--------------
    gcp/trunk/src/gate/cloud/batch/BatchRunner.java

Modified: gcp/trunk/src/gate/cloud/batch/BatchRunner.java
===================================================================
--- gcp/trunk/src/gate/cloud/batch/BatchRunner.java     2014-07-08 16:49:07 UTC 
(rev 18166)
+++ gcp/trunk/src/gate/cloud/batch/BatchRunner.java     2014-07-08 18:31:07 UTC 
(rev 18167)
@@ -742,8 +742,12 @@
           String outputHandlerClassName;
           if(!line.hasOption('f') || line.getOptionValue('f').equals("finf")) {
             outputHandlerClassName = 
"gate.cloud.io.file.FastInfosetOutputHandler";
+          } else if(line.hasOption('f') && 
line.getOptionValue('f').equals("xml")) {
+            outputHandlerClassName = 
"gate.cloud.io.file.GATEStandOffFileOutputHandler";
           } else {
-            outputHandlerClassName = "gate.cloud.io.file.FileOutputHandler";
+            // this should never happen, since we have checked the format
+            // earlier
+            outputHandlerClassName = null;
           }
           configData = new HashMap<String, String>();
           configData.put(IOConstants.PARAM_DOCUMENT_ROOT, 
line.getOptionValue('o'));

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to