ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs ExecTask.java
Date Thu, 10 Aug 2000 15:33:21 GMT
bodewig     00/08/10 08:33:20

  Modified:    src/main/org/apache/tools/ant/taskdefs ExecTask.java
  Log:
  log environment variables we set for the subprocess when -verbose is used.
  
  Revision  Changes    Path
  1.7       +8 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
  
  Index: ExecTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ExecTask.java	2000/08/09 15:50:23	1.6
  +++ ExecTask.java	2000/08/10 15:33:18	1.7
  @@ -191,7 +191,14 @@
           Execute exe = new Execute(createHandler(), createWatchdog());
           exe.setAntRun(project);
           exe.setWorkingDirectory(dir);
  -        exe.setEnvironment(env.getVariables());
  +        String[] environment = env.getVariables();
  +        if (environment != null) {
  +            for (int i=0; i<environment.length; i++) {
  +                log("Setting environment variable: "+environment[i],
  +                    Project.MSG_VERBOSE);
  +            }
  +        }
  +        exe.setEnvironment(environment);
           return exe;
       }
   
  
  
  

Mime
View raw message