Browse Source

The javadoc task now looks for the javadoc executable

in the java.home/../bin directory.  That way if your
java installation isn't in your path, you can still
create javadocs.


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

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

@@ -734,7 +734,8 @@ public class Javadoc extends Task {
} }


Commandline toExecute = (Commandline)cmd.clone(); Commandline toExecute = (Commandline)cmd.clone();
toExecute.setExecutable("javadoc");
toExecute.setExecutable(System.getProperty("java.home") +
"/../bin/javadoc");


// ------------------------------------------------ general javadoc arguments // ------------------------------------------------ general javadoc arguments
if (classpath == null) if (classpath == null)


Loading…
Cancel
Save