Browse Source

Removed all command line switches that didn't start with a -.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267835 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
e79bd24e1a
2 changed files with 12 additions and 7 deletions
  1. +7
    -2
      WHATSNEW
  2. +5
    -5
      src/main/org/apache/tools/ant/Main.java

+ 7
- 2
WHATSNEW View File

@@ -5,11 +5,13 @@ Changes that could break older buildfiles:


* copying of support files in <javac> has been removed. * copying of support files in <javac> has been removed.


* the command line switches _not_ starting with - have been removed.

Other changes: Other changes:
-------------- --------------


* New tasks (sql, junit, javacc) all pending documentation, some of
them pending review.
* New tasks: sql, junit, javacc, execon. All pending documentation,
most of them pending review.


* <java> uses ClassLoader of its own in no-fork mode if a classpath is * <java> uses ClassLoader of its own in no-fork mode if a classpath is
specified. specified.
@@ -26,6 +28,9 @@ use, pending documentation.
* You can specify environment variables to the exec task - pending * You can specify environment variables to the exec task - pending
documentation. documentation.


* Get can check wether a remote file is actually newer than a local
copy before it starts a download (HTTP only).

Fixed bugs: Fixed bugs:
----------- -----------




+ 5
- 5
src/main/org/apache/tools/ant/Main.java View File

@@ -119,17 +119,17 @@ public class Main {
for (int i = 0; i < args.length; i++) { for (int i = 0; i < args.length; i++) {
String arg = args[i]; String arg = args[i];


if (arg.equals("-help") || arg.equals("help")) {
if (arg.equals("-help")) {
printUsage(); printUsage();
return; return;
} else if (arg.equals("-version")) { } else if (arg.equals("-version")) {
printVersion(); printVersion();
return; return;
} else if (arg.equals("-quiet") || arg.equals("-q") || arg.equals("q")) {
} else if (arg.equals("-quiet") || arg.equals("-q")) {
msgOutputLevel = Project.MSG_WARN; msgOutputLevel = Project.MSG_WARN;
} else if (arg.equals("-verbose") || arg.equals("-v") || arg.equals("v")) {
} else if (arg.equals("-verbose") || arg.equals("-v")) {
msgOutputLevel = Project.MSG_VERBOSE; msgOutputLevel = Project.MSG_VERBOSE;
} else if (arg.equals("-logfile") || arg.equals("-l") || arg.equals("l")) {
} else if (arg.equals("-logfile") || arg.equals("-l")) {
try { try {
File logFile = new File(args[i+1]); File logFile = new File(args[i+1]);
i++; i++;
@@ -147,7 +147,7 @@ public class Main {
System.out.println(msg); System.out.println(msg);
return; return;
} }
} else if (arg.equals("-buildfile") || arg.equals("-file") || arg.equals("-f") || arg.equals("f")) {
} else if (arg.equals("-buildfile") || arg.equals("-file") || arg.equals("-f")) {
try { try {
buildFile = new File(args[i+1]); buildFile = new File(args[i+1]);
i++; i++;


Loading…
Cancel
Save