Revision: 19683 http://sourceforge.net/p/gate/code/19683 Author: johann_p Date: 2016-10-15 18:57:09 +0000 (Sat, 15 Oct 2016) Log Message: ----------- Add support for extension gatexml for 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 2016-10-15 13:30:06 UTC (rev 19682) +++ gcp/trunk/src/gate/cloud/batch/BatchRunner.java 2016-10-15 18:57:09 UTC (rev 19683) @@ -521,7 +521,7 @@ // session files here? options.addOption("b","batchFile",true,"Batch file (required, replaces -i, -o, -x, -r, -I)"); options.addOption("i","inputDirectory",true,"Input directory (required, unless -b given)"); - options.addOption("f","outputFormat",true,"Output format, optional, one of 'xml', 'finf', 'ser', 'json', default is 'finf'"); + options.addOption("f","outputFormat",true,"Output format, optional, one of 'xml'|'gatexml', 'finf', 'ser', 'json', default is 'finf'"); options.addOption("o","outputDirectory",true,"Output directory (not output if missing)"); options.addOption("x","executePipeline",true,"Pipeline/application file to execute (required, unless -b given)"); options.addOption("r","reportFile",true,"Report file (optional, default: report.xml"); @@ -577,6 +577,7 @@ if(line.hasOption('f')) { outFormat = line.getOptionValue('f'); if(!outFormat.equals("xml") && !outFormat.equals("finf") && + !outFormat.equals("gatexml") && !outFormat.equals("ser") && !outFormat.equals("json")) { log.error("Output format (option 'f') must be either 'json', 'ser', xml' or 'finf'"); System.exit(1); @@ -742,6 +743,9 @@ } else if(outFormat.equals("xml")) { outExt = ".xml"; outputHandlerClassName = "gate.cloud.io.file.GATEStandOffFileOutputHandler"; + } else if(outFormat.equals("gatexml")) { + outExt = ".gatexml"; + outputHandlerClassName = "gate.cloud.io.file.GATEStandOffFileOutputHandler"; } else if(outFormat.equals("ser")) { outExt = ".ser"; outputHandlerClassName = "gate.cloud.io.file.SerializedObjectOutputHandler"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs