ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javadoc.java
Date Sun, 06 Feb 2000 00:26:58 GMT
rubys       00/02/05 16:26:58

  Modified:    src/main/org/apache/tools/ant/taskdefs Javadoc.java
  Log:
  Merge classpath+sourcepath for jdk 1.1
  
  Revision  Changes    Path
  1.3       +14 -8     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
  
  Index: Javadoc.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Javadoc.java	2000/01/27 03:54:43	1.2
  +++ Javadoc.java	2000/02/06 00:26:57	1.3
  @@ -251,16 +251,22 @@
           Vector argList = new Vector();
   
   // ------------------------------------------------ general javadoc arguments
  -        if (sourcePath != null) {
  -            argList.addElement("-sourcepath");
  -            argList.addElement(sourcePath);
  -        }
  -        argList.addElement("-classpath");
  -        if (classpath != null) {
  +        if (classpath == null)
  +            classpath = System.getProperty("java.class.path");
  +
  +        if ( (!javadoc1) || (sourcePath == null) ) {
  +            argList.addElement("-classpath");
               argList.addElement(classpath);
  -        } else {
  -            argList.addElement(System.getProperty("java.class.path"));
  +            if (sourcePath != null) {
  +                argList.addElement("-sourcepath");
  +                argList.addElement(sourcePath);
  +            }
  +        } else { 
  +            argList.addElement("-classpath");
  +            argList.addElement(sourcePath + 
  +                System.getProperty("path.separator") + classpath);
           }
  +
           if (destDir != null) {
               argList.addElement("-d");
               argList.addElement(destDir.getAbsolutePath());
  
  
  

Mime
View raw message