Browse Source

- There was an ugly line-break and system was duplicate.

- Error message for unknown arguments know reads "Unknown argument" instead
of "Unknown arg"

Submitted By: "Nico Seessle" <Nico.Seessle@epost.de>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268490 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
415946f000
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/main/org/apache/tools/ant/Main.java

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

@@ -264,7 +264,7 @@ public class Main {
}
} else if (arg.startsWith("-")) {
// we don't have any more args to recognize!
String msg = "Unknown arg: " + arg;
String msg = "Unknown argument: " + arg;
System.out.println(msg);
printUsage();
return;
@@ -504,8 +504,8 @@ public class Main {
msg.append(" -listener <classname> add an instance of class as a project listener" + lSep);
msg.append(" -buildfile <file> use given buildfile" + lSep);
msg.append(" -D<property>=<value> use value for given property" + lSep);
msg.append(" -find <file> search for buildfile towards the root of the filesystem" + lSep);
msg.append(" system and use it" + lSep);
msg.append(" -find <file> search for buildfile towards the root of the" + lSep);
msg.append(" filesystem and use it" + lSep);
System.out.println(msg.toString());
}



Loading…
Cancel
Save