Browse Source

Add comments regarding future netware integration.

Submitted by: "Jeff Tulley" <JTULLEY@novell.com>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269785 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
d81ef5ce76
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/main/org/apache/tools/ant/taskdefs/Javadoc.java

+ 5
- 2
src/main/org/apache/tools/ant/taskdefs/Javadoc.java View File

@@ -1145,12 +1145,15 @@ public class Javadoc extends Task {


private String getJavadocExecutableName() 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. // nothing for *nix.
String os = System.getProperty("os.name").toLowerCase(); String os = System.getProperty("os.name").toLowerCase();
boolean dosBased = boolean dosBased =
os.indexOf("windows") >= 0 || os.indexOf("os/2") >= 0; 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 // Look for javadoc in the java.home/../bin directory. Unfortunately
// on Windows java.home doesn't always refer to the correct location, // on Windows java.home doesn't always refer to the correct location,


Loading…
Cancel
Save