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 Rmic.java
Date Tue, 27 Mar 2001 06:36:06 GMT
bodewig     01/03/26 22:36:06

  Modified:    src/main/org/apache/tools/ant/taskdefs Rmic.java
  Log:
  chop .class at the end, not somewhere in the middle.
  
  PR:             1124
  Submitted by:	mstover1@apache.org
  
  Revision  Changes    Path
  1.22      +1 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Rmic.java
  
  Index: Rmic.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Rmic.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Rmic.java	2001/03/19 11:22:48	1.21
  +++ Rmic.java	2001/03/27 06:36:06	1.22
  @@ -456,7 +456,7 @@
           String[] newFiles = sfs.restrict(files, baseDir, baseDir, mapper);
           for (int i = 0; i < newFiles.length; i++) {
               String classname = newFiles[i].replace(File.separatorChar, '.');
  -            classname = classname.substring(0, classname.indexOf(".class"));
  +            classname = classname.substring(0, classname.lastIndexOf(".class"));
               compileList.addElement(classname);
           }
       }
  
  
  

Mime
View raw message