svn commit: r1224808 - /cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java

[email protected]
Newsgroups gmane.text.xml.cocoon.cvs
Message-ID <[email protected]>
Author: simonetripodi
Date: Mon Dec 26 20:57:42 2011
New Revision: 1224808

URL: http://svn.apache.org/viewvc?rev=1224808&view=rev
Log:
use the JCommander provided file converter instead of reinventing the wheel

Modified:
    cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java

Modified: cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java?rev=1224808&r1=1224807&r2=1224808&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java (original)
+++ cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java Mon Dec 26 20:57:42 2011
@@ -22,8 +22,8 @@ import java.io.File;
 import java.util.ArrayList;
 import java.util.List;
 
-import com.beust.jcommander.IStringConverter;
 import com.beust.jcommander.Parameter;
+import com.beust.jcommander.converters.FileConverter;
 
 public final class CliOptions
 {
@@ -76,15 +76,4 @@ public final class CliOptions
         return pipesHelp;
     }
 
-    public static class FileConverter
-        implements IStringConverter<File>
-    {
-
-        public File convert( String value )
-        {
-            return new File( value );
-        }
-
-    }
-
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.