Browse Source

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]


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268156 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
fd1d5f90f4
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/DDCreatorHelper.java

+ 2
- 0
src/main/org/apache/tools/ant/taskdefs/optional/ejb/DDCreatorHelper.java View File

@@ -116,6 +116,8 @@ public class DDCreatorHelper {
for (int i = 0; i < descriptors.length; ++i) { for (int i = 0; i < descriptors.length; ++i) {
String descriptorName = descriptors[i]; String descriptorName = descriptors[i];
File descriptorFile = new File(descriptorDirectory, descriptorName); File descriptorFile = new File(descriptorDirectory, descriptorName);
// flatten the generated file so all go into the
descriptorName = descriptorFile.getName();
int extIndex = descriptorName.lastIndexOf("."); int extIndex = descriptorName.lastIndexOf(".");
String serName = null; String serName = null;
if (extIndex != -1) { if (extIndex != -1) {


Loading…
Cancel
Save