You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jt...@apache.org on 2002/12/27 19:15:01 UTC

cvs commit: jakarta-turbine-maven/src/java/org/apache/maven/cli CLIManager.java

jtaylor     2002/12/27 10:15:00

  Modified:    src/java/org/apache/maven/cli CLIManager.java
  Log:
  CommandLineParserFactory has been long gone from commons-cli, so instead
  create a PosixParser directly.
  
  This should be compatible with the version of commons-cli in the repository
  (tagged 1.0-beta-2) as well as 1.0 and HEAD.
  
  Revision  Changes    Path
  1.4       +2 -2      jakarta-turbine-maven/src/java/org/apache/maven/cli/CLIManager.java
  
  Index: CLIManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/cli/CLIManager.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CLIManager.java	24 Nov 2002 19:00:38 -0000	1.3
  +++ CLIManager.java	27 Dec 2002 18:15:00 -0000	1.4
  @@ -58,11 +58,11 @@
   
   import org.apache.commons.cli.CommandLine;
   import org.apache.commons.cli.CommandLineParser;
  -import org.apache.commons.cli.CommandLineParserFactory;
   import org.apache.commons.cli.HelpFormatter;
   import org.apache.commons.cli.OptionBuilder;
   import org.apache.commons.cli.Options;
   import org.apache.commons.cli.ParseException;
  +import org.apache.commons.cli.PosixParser;
   import org.apache.env.Which;
   
   /** Utility for managing and parsing Maven's command-line.
  @@ -183,7 +183,7 @@
        */
       public static CommandLine parse( String[] args ) throws ParseException
       {
  -        CommandLineParser parser = CommandLineParserFactory.newParser();
  +        CommandLineParser parser = new PosixParser();
           return parser.parse( options, args );
       }