morfologik-stemming (1.2.2-1) getOptionObject.diff

Summary

 src/morfologik/tools/DumpTool.java           |    4 ++--
 src/morfologik/tools/PolishStemmingTool.java |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

    
download this patch

Patch contents

Description: Workaround for building the package against the current version of
 commons-cli
Forwarded: not-needed
Author: Rail Aliev <rail@i-rs.ru>

--- a/src/morfologik/tools/DumpTool.java
+++ b/src/morfologik/tools/DumpTool.java
@@ -40,7 +40,7 @@
      */
     protected void go(CommandLine line) throws Exception {
 	final File dictionaryFile = (File) line
-		.getParsedOptionValue(SharedOptions.fsaDictionaryFileOption
+		.getOptionObject(SharedOptions.fsaDictionaryFileOption
 			.getOpt());
 
 	dataOnly = line.hasOption(SharedOptions.dataOnly.getOpt());
@@ -238,4 +238,4 @@
 	final DumpTool fsaDump = new DumpTool();
 	fsaDump.go(args);
     }
-}
\ No newline at end of file
+}
--- a/src/morfologik/tools/PolishStemmingTool.java
+++ b/src/morfologik/tools/PolishStemmingTool.java
@@ -139,7 +139,7 @@
 	    // Use output file.
 	    output = new OutputStreamWriter(
 		    new BufferedOutputStream(new FileOutputStream((File) line
-			    .getParsedOptionValue(opt))), outputEncoding);
+			    .getOptionObject(opt))), outputEncoding);
 	} else {
 	    // Use standard output.
 	    output = new OutputStreamWriter(System.out, outputEncoding);
@@ -159,7 +159,7 @@
 	    // Use input file.
 	    input = new InputStreamReader(
 		    new BufferedInputStream(new FileInputStream((File) line
-			    .getParsedOptionValue(opt))), inputEncoding);
+			    .getOptionObject(opt))), inputEncoding);
 	} else {
 	    // Use standard input.
 	    input = new InputStreamReader(System.in, inputEncoding);
@@ -185,4 +185,4 @@
 	final PolishStemmingTool tool = new PolishStemmingTool();
 	tool.go(args);
     }    
-}
\ No newline at end of file
+}