From d81ef5ce763346716ca8c78ba6ab666eb05a31d8 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sat, 13 Oct 2001 01:53:37 +0000 Subject: [PATCH] Add comments regarding future netware integration. Submitted by: "Jeff Tulley" git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269785 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Javadoc.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Javadoc.java b/src/main/org/apache/tools/ant/taskdefs/Javadoc.java index 91bd6ddc2..5e68d7d5c 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Javadoc.java +++ b/src/main/org/apache/tools/ant/taskdefs/Javadoc.java @@ -1145,12 +1145,15 @@ public class Javadoc extends Task { private String getJavadocExecutableName() { - // This is the most common extension case - exe for windows and OS/2, + // This is the most common extension case - exe for windows and OS/2, // nothing for *nix. String os = System.getProperty("os.name").toLowerCase(); boolean dosBased = os.indexOf("windows") >= 0 || os.indexOf("os/2") >= 0; - String extension = dosBased? ".exe" : ""; + // for NetWare, we do not want an extension either, so we will be + // "non dosBased". If this variable is ever used for other logic + // besides the extension, we may need to revisit this code. + String extension = dosBased? ".exe" : ""; // Look for javadoc in the java.home/../bin directory. Unfortunately // on Windows java.home doesn't always refer to the correct location,