You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by co...@locus.apache.org on 2000/11/07 13:17:15 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb DDCreatorHelper.java

conor       00/11/07 04:17:14

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/ejb
                        DDCreatorHelper.java
  Log:
  Fix up date check on .ser files when the .txt input files are not in the
  root of the specified descriptor directory
  
  Submitted by:	Robert Lucier [rlucier@collabria.com]
  
  Revision  Changes    Path
  1.2       +2 -0      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DDCreatorHelper.java
  
  Index: DDCreatorHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DDCreatorHelper.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DDCreatorHelper.java	2000/07/05 15:36:12	1.1
  +++ DDCreatorHelper.java	2000/11/07 12:17:13	1.2
  @@ -116,6 +116,8 @@
           for (int i = 0; i < descriptors.length; ++i) {
               String descriptorName = descriptors[i];
               File descriptorFile = new File(descriptorDirectory, descriptorName);
  +            // flatten the generated file so all go into the 
  +            descriptorName = descriptorFile.getName();
               int extIndex = descriptorName.lastIndexOf(".");
               String serName = null;
               if (extIndex != -1) {