ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javadoc.java
Date Thu, 07 Jun 2001 10:02:11 GMT
bodewig     01/06/07 03:02:11

  Modified:    src/main/org/apache/tools/ant/taskdefs Javadoc.java
  Log:
  Don't change working directory for javadoc.
  
  Submitted by:	Jay Glanville <dickon@nortelnetworks.com>
  
  Revision  Changes    Path
  1.51      +8 -1      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.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- Javadoc.java	2001/05/23 16:44:11	1.50
  +++ Javadoc.java	2001/06/07 10:02:07	1.51
  @@ -942,7 +942,14 @@
           JavadocOutputStream err = new JavadocOutputStream(Project.MSG_WARN);
           Execute exe = new Execute(new PumpStreamHandler(out, err));
           exe.setAntRun(project);
  -        exe.setWorkingDirectory(project.getBaseDir());
  +        
  +        /*
  +         * No reason to change the working directory as all filenames and
  +         * path components have been resolved already.
  +         *
  +         * Avoid problems with command line length in some environments.
  +         */
  +        exe.setWorkingDirectory(null);
           try {
               exe.setCommandline(toExecute.getCommandline());
               int ret = exe.execute();
  
  
  

Mime
View raw message