PR: 25826 Obtained from: Damon Sicore git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275854 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -715,7 +715,8 @@ the value <code>none</code>.</p> | |||||
| namespace. Note that this attribute is only used if the | namespace. Note that this attribute is only used if the | ||||
| task is generating generic jars (i.e. no vendor-specific | task is generating generic jars (i.e. no vendor-specific | ||||
| deployment elements have been specified).</td> | 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> | ||||
| <tr> | <tr> | ||||
| <td valign="top">cmpversion</td> | <td valign="top">cmpversion</td> | ||||
| @@ -120,7 +120,14 @@ public class JbossDeploymentTool extends GenericDeploymentTool { | |||||
| * of this jar will be checked against the dependent bean classes. | * of this jar will be checked against the dependent bean classes. | ||||
| */ | */ | ||||
| File getVendorOutputJarFile(String baseName) { | 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); | |||||
| } | |||||
| } | } | ||||
| /** | /** | ||||