You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jh...@apache.org on 2003/09/03 16:19:07 UTC

cvs commit: ant/src/main/org/apache/tools/ant Main.java

jhm         2003/09/03 07:19:07

  Modified:    src/main/org/apache/tools/ant Main.java
  Log:
  New shortcuts for ant options:
  -d  -->  -debug
  -e  -->  -emacs
  -h  -->  -help
  -p  -->  -projecthelp
  -s  -->  -find
  
  Revision  Changes    Path
  1.93      +12 -12    ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.92
  retrieving revision 1.93
  diff -u -r1.92 -r1.93
  --- Main.java	27 Aug 2003 08:45:03 -0000	1.92
  +++ Main.java	3 Sep 2003 14:19:07 -0000	1.93
  @@ -303,7 +303,7 @@
           for (int i = 0; i < args.length; i++) {
               String arg = args[i];
   
  -            if (arg.equals("-help")) {
  +            if (arg.equals("-help") || arg.equals("-h")) {
                   printUsage();
                   return;
               } else if (arg.equals("-version")) {
  @@ -317,7 +317,7 @@
               } else if (arg.equals("-verbose") || arg.equals("-v")) {
                   printVersion();
                   msgOutputLevel = Project.MSG_VERBOSE;
  -            } else if (arg.equals("-debug")) {
  +            } else if (arg.equals("-debug") || arg.equals("-d")) {
                   printVersion();
                   msgOutputLevel = Project.MSG_DEBUG;
               } else if (arg.equals("-noinput")) {
  @@ -407,12 +407,12 @@
                                                + " using the -inputhandler"
                                                + " argument");
                   }
  -            } else if (arg.equals("-emacs")) {
  +            } else if (arg.equals("-emacs") || arg.equals("-e")) {
                   emacsMode = true;
  -            } else if (arg.equals("-projecthelp")) {
  +            } else if (arg.equals("-projecthelp") || arg.equals("-p")) {
                   // set the flag to display the targets and quit
                   projectHelp = true;
  -            } else if (arg.equals("-find")) {
  +            } else if (arg.equals("-find") || arg.equals("-s")) {
                   // eat up next arg if present, default to build.xml
                   if (i < args.length - 1) {
                       searchForThis = args[++i];
  @@ -796,15 +796,15 @@
           StringBuffer msg = new StringBuffer();
           msg.append("ant [options] [target [target2 [target3] ...]]" + lSep);
           msg.append("Options: " + lSep);
  -        msg.append("  -help                  print this message" + lSep);
  -        msg.append("  -projecthelp           print project help information" + lSep);
  +        msg.append("  -help, -h              print this message" + lSep);
  +        msg.append("  -projecthelp, -p       print project help information" + lSep);
           msg.append("  -version               print the version information and exit" + lSep);
           msg.append("  -diagnostics           print information that might be helpful to" + lSep);
           msg.append("                         diagnose or report problems." + lSep);
           msg.append("  -quiet, -q             be extra quiet" + lSep);
           msg.append("  -verbose, -v           be extra verbose" + lSep);
  -        msg.append("  -debug                 print debugging information" + lSep);
  -        msg.append("  -emacs                 produce logging information without adornments" + lSep);
  +        msg.append("  -debug, -d             print debugging information" + lSep);
  +        msg.append("  -emacs, -e             produce logging information without adornments" + lSep);
           msg.append("  -logfile <file>        use given file for log" + lSep);
           msg.append("    -l     <file>                ''" + lSep);
           msg.append("  -logger <classname>    the class which is to perform logging" + lSep);
  @@ -819,8 +819,8 @@
           msg.append("  -propertyfile <name>   load all properties from file with -D" + lSep);
           msg.append("                         properties taking precedence" + lSep);
           msg.append("  -inputhandler <class>  the class which will handle input requests" + lSep);
  -        msg.append("  -find <file>           search for buildfile towards the root of the" + lSep);
  -        msg.append("                         filesystem and use it" + lSep);
  +        msg.append("  -find <file>           (s)earch for buildfile towards the root of" + lSep);
  +        msg.append("    -s  <file>           the filesystem and use it" + lSep);
           System.out.println(msg.toString());
       }
   
  @@ -1010,4 +1010,4 @@
           }
           project.log(msg.toString());
       }
  -}
  +}
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: cvs commit: ant/src/main/org/apache/tools/ant Main.java

Posted by Stefan Bodewig <bo...@apache.org>.
could you please also update docs/manual/running.html?

Thanks

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org