Browse Source

Fix up the location where the toplink element looks for descriptors.

Thanks to much persistence by Cyril Bouteille <CyrilBouteille@yahoo.com>


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

+ 14
- 1
src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicTOPLinkDeploymentTool.java View File

@@ -108,12 +108,25 @@ public class WeblogicTOPLinkDeploymentTool extends WeblogicDeploymentTool {

// Setup a naming standard here?.

File toplinkDD = new File(getConfig().descriptorDir, toplinkDescriptor);

File toplinkDD = null;
if (usingBaseJarName()) {
toplinkDD = new File(getConfig().descriptorDir, toplinkDescriptor);
}
else {
String ddPrefix = baseName + getConfig().baseNameTerminator;
File actualDir = (new File(getConfig().descriptorDir, ddPrefix)).getParentFile();
toplinkDD = new File(actualDir, toplinkDescriptor);
}
if (toplinkDD.exists()) {
ejbFiles.put(META_DIR + toplinkDescriptor,
toplinkDD);
}
else {
log("Unable to locate toplink deployment descriptor. It was expected to be in " +
toplinkDD.getPath(), Project.MSG_WARN);
}
}
/**


Loading…
Cancel
Save