Browse Source

Use getDestDir of jboss element of ejbjar

PR: 25826
Obtained from: Damon Sicore


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275854 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 21 years ago
parent
commit
5410d80ef4
2 changed files with 10 additions and 2 deletions
  1. +2
    -1
      docs/manual/OptionalTasks/ejb.html
  2. +8
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/JbossDeploymentTool.java

+ 2
- 1
docs/manual/OptionalTasks/ejb.html View File

@@ -715,7 +715,8 @@ the value <code>none</code>.</p>
namespace. Note that this attribute is only used if the
task is generating generic jars (i.e. no vendor-specific
deployment elements have been specified).</td>
<td valign="top" align="center">Yes</td>
<td valign="top" align="center">Yes, unless vendor-specific deployment elements
have been specified.</td>
</tr>
<tr>
<td valign="top">cmpversion</td>


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

@@ -120,7 +120,14 @@ public class JbossDeploymentTool extends GenericDeploymentTool {
* of this jar will be checked against the dependent bean classes.
*/
File getVendorOutputJarFile(String baseName) {
return new File(getParent().getDestdir(), baseName + jarSuffix);
if (getDestDir() == null && getParent().getDestdir() == null) {
throw new BuildException("DestDir not specified");
}
if (getDestDir() == null) {
return new File(getParent().getDestdir(), baseName + jarSuffix);
} else {
return new File(getDestDir(), baseName + jarSuffix);
}
}

/**


Loading…
Cancel
Save