diff --git a/WHATSNEW b/WHATSNEW index bcdee3b33..be307df83 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -5,11 +5,13 @@ Changes that could break older buildfiles: * copying of support files in has been removed. +* the command line switches _not_ starting with - have been removed. + 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. * uses ClassLoader of its own in no-fork mode if a classpath is specified. @@ -26,6 +28,9 @@ use, pending documentation. * You can specify environment variables to the exec task - pending documentation. +* Get can check wether a remote file is actually newer than a local +copy before it starts a download (HTTP only). + Fixed bugs: ----------- diff --git a/src/main/org/apache/tools/ant/Main.java b/src/main/org/apache/tools/ant/Main.java index 475d99b01..1ef075351 100644 --- a/src/main/org/apache/tools/ant/Main.java +++ b/src/main/org/apache/tools/ant/Main.java @@ -119,17 +119,17 @@ public class Main { for (int i = 0; i < args.length; i++) { String arg = args[i]; - if (arg.equals("-help") || arg.equals("help")) { + if (arg.equals("-help")) { printUsage(); return; } else if (arg.equals("-version")) { printVersion(); return; - } else if (arg.equals("-quiet") || arg.equals("-q") || arg.equals("q")) { + } else if (arg.equals("-quiet") || arg.equals("-q")) { 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; - } else if (arg.equals("-logfile") || arg.equals("-l") || arg.equals("l")) { + } else if (arg.equals("-logfile") || arg.equals("-l")) { try { File logFile = new File(args[i+1]); i++; @@ -147,7 +147,7 @@ public class Main { System.out.println(msg); 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 { buildFile = new File(args[i+1]); i++;