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 ExecuteOn.java
Date Wed, 21 Nov 2001 17:29:43 GMT
bodewig     01/11/21 09:29:43

  Modified:    src/main/org/apache/tools/ant/taskdefs ExecuteOn.java
  Log:
  handle target files as well.
  
  Revision  Changes    Path
  1.19      +7 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecuteOn.java
  
  Index: ExecuteOn.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecuteOn.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ExecuteOn.java	2001/11/21 17:20:29	1.18
  +++ ExecuteOn.java	2001/11/21 17:29:43	1.19
  @@ -280,7 +280,13 @@
                   String[] subTargets = mapper.mapFileName(srcFiles[i]);
                   if (subTargets != null) {
                       for (int j=0; j<subTargets.length; j++) {
  -                        String name = (new File(destDir, subTargets[j])).getAbsolutePath();
  +                        String name = null;
  +                        if (!relative) {
  +                            name =
  +                                (new File(destDir, subTargets[j])).getAbsolutePath();
  +                        } else {
  +                            name = subTargets[j];
  +                        }
                           if (!addedFiles.contains(name)) {
                               targets.addElement(name);
                               addedFiles.put(name, name);
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message