cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1224808 - /cocoon/cocoon3/trunk/cocoon-cli/src/main/java/org/apache/cocoon/cli/CliOptions.java
Date Mon, 26 Dec 2011 20:57:42 GMT
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 );
-        }
-
-    }
-
 }



Mime
View raw message