Re: Checkstyle cent version
"Adam R. B. Jack" <[email protected]> Thu, 13 Nov 2003 11:25:15 -0700
| Newsgroups | gmane.comp.krysalis.user |
|---|---|
| Message-ID | <00bd01c3aa13$7ff132c0$8f8b1f43@tsws1> |
> Its looking for /usr/bin/env file. I checked the path to this file on
this machine is /bin/env
I looked inside the Ant code, and it has stuff like this below. I'f not
looked deeep enough to determien how ant figures out what OS it is on, or if
that could be a problem.
What OS are you on, and do you have a readable /usr/bin/env that is not
executable or something? This code (which is later than yours, so maybe
different) looks safe.
I'd say your next stop is the ant buglist to do a query, and they try
psoting to them.
Good luck
regards
Adam
} else if (Os.isFamily("z/os") || Os.isFamily("unix")) {
// On most systems one could use: /bin/sh -c env
// Some systems have /bin/env, others /usr/bin/env, just try
String[] cmd = new String[1];
if (new File("/bin/env").canRead()) {
cmd[0] = "/bin/env";
} else if (new File("/usr/bin/env").canRead()) {
cmd[0] = "/usr/bin/env";
} else {
// rely on PATH
cmd[0] = "env";
}
return cmd;
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/