[Ts2-pm-deve] ts2-pm/ts2-pm-core/src/main/java/net/sf/ts2/pm/cli CLIManager.java,1.1,1.2
Status: Pre-Alpha
Brought to you by:
nchalumeau
From: Nicolas C. <nch...@us...> - 2005-05-13 19:44:39
|
Update of /cvsroot/ts2-pm/ts2-pm/ts2-pm-core/src/main/java/net/sf/ts2/pm/cli In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21648/ts2-pm-core/src/main/java/net/sf/ts2/pm/cli Modified Files: CLIManager.java Log Message: o maven-2.0-alpha2 support o eclipse project descriptor are generate by m2 Index: CLIManager.java =================================================================== RCS file: /cvsroot/ts2-pm/ts2-pm/ts2-pm-core/src/main/java/net/sf/ts2/pm/cli/CLIManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CLIManager.java 13 May 2005 16:39:35 -0000 1.1 --- CLIManager.java 13 May 2005 19:44:30 -0000 1.2 *************** *** 10,18 **** * @author chalumeau */ ! public // ---------------------------------------------------------------------- ! // Command line manager ! // ---------------------------------------------------------------------- ! ! static class CLIManager { public static final char SET_SYSTEM_PROPERTY = 'D'; --- 10,14 ---- * @author chalumeau */ ! public class CLIManager { public static final char SET_SYSTEM_PROPERTY = 'D'; *************** *** 29,72 **** public static final char VERSION = 'v'; ! private Options options = null; ! ! public CLIManager() ! { ! options = new Options(); ! options.addOption( OptionBuilder.withLongOpt( "define" ).hasArg().withDescription( ! "Define a system property" ).create( SET_SYSTEM_PROPERTY ) ); ! options.addOption( OptionBuilder.withLongOpt( "offline" ).withDescription( "Work offline" ).create( ! OFFLINE ) ); ! // options.addOption( OptionBuilder.withLongOpt( "mojoDescriptors" ).withDescription( ! // "Display available mojoDescriptors" ).create( LIST_GOALS ) ); ! options.addOption( OptionBuilder.withLongOpt( "help" ).withDescription( "Display help information" ).create( ! HELP ) ); ! options.addOption( OptionBuilder.withLongOpt( "version" ).withDescription( "Display version information" ).create( ! VERSION ) ); ! options.addOption( OptionBuilder.withLongOpt( "debug" ).withDescription( "Produce execution debug output" ).create( ! DEBUG ) ); ! options.addOption( OptionBuilder.withLongOpt( "errors" ).withDescription( ! "Produce execution error messages" ).create( ERRORS ) ); ! options.addOption( OptionBuilder.withLongOpt( "reactor" ).withDescription( ! "Execute goals for project found in the reactor" ).create( REACTOR ) ); ! options.addOption( OptionBuilder.withLongOpt( "non-recursive" ).withDescription( ! "Do not recurse into sub-projects" ).create( NON_RECURSIVE ) ); ! options.addOption( OptionBuilder.withLongOpt( "update-snapshots" ).withDescription( ! "Update all snapshots regardless of repository policies" ).create( UPDATE_SNAPSHOTS ) ); ! } ! ! public CommandLine parse( String[] args ) ! throws ParseException ! { ! CommandLineParser parser = new PosixParser(); ! return parser.parse( options, args ); ! } ! ! public void displayHelp() ! { ! System.out.println(); ! ! HelpFormatter formatter = new HelpFormatter(); ! formatter.printHelp( "maven [options] [goal [goal2 [goal3] ...]]", "\nOptions:", options, "\n" ); ! } } --- 25,68 ---- public static final char VERSION = 'v'; ! // private Options options = null; ! // ! // public CLIManager() ! // { ! // options = new Options(); ! // options.addOption( OptionBuilder.withLongOpt( "define" ).hasArg().withDescription( ! // "Define a system property" ).create( SET_SYSTEM_PROPERTY ) ); ! // options.addOption( OptionBuilder.withLongOpt( "offline" ).withDescription( "Work offline" ).create( ! // OFFLINE ) ); ! //// options.addOption( OptionBuilder.withLongOpt( "mojoDescriptors" ).withDescription( ! //// "Display available mojoDescriptors" ).create( LIST_GOALS ) ); ! // options.addOption( OptionBuilder.withLongOpt( "help" ).withDescription( "Display help information" ).create( ! // HELP ) ); ! // options.addOption( OptionBuilder.withLongOpt( "version" ).withDescription( "Display version information" ).create( ! // VERSION ) ); ! // options.addOption( OptionBuilder.withLongOpt( "debug" ).withDescription( "Produce execution debug output" ).create( ! // DEBUG ) ); ! // options.addOption( OptionBuilder.withLongOpt( "errors" ).withDescription( ! // "Produce execution error messages" ).create( ERRORS ) ); ! // options.addOption( OptionBuilder.withLongOpt( "reactor" ).withDescription( ! // "Execute goals for project found in the reactor" ).create( REACTOR ) ); ! // options.addOption( OptionBuilder.withLongOpt( "non-recursive" ).withDescription( ! // "Do not recurse into sub-projects" ).create( NON_RECURSIVE ) ); ! // options.addOption( OptionBuilder.withLongOpt( "update-snapshots" ).withDescription( ! // "Update all snapshots regardless of repository policies" ).create( UPDATE_SNAPSHOTS ) ); ! // } ! // ! // public CommandLine parse( String[] args ) ! // throws ParseException ! // { ! // CommandLineParser parser = new PosixParser(); ! // return parser.parse( options, args ); ! // } ! // ! // public void displayHelp() ! // { ! // System.out.println(); ! // ! // HelpFormatter formatter = new HelpFormatter(); ! // formatter.printHelp( "maven [options] [goal [goal2 [goal3] ...]]", "\nOptions:", options, "\n" ); ! // } } |