Hi,
I'm submitting a fix for the JbossDeploymentTool class of the optional ejbjar
task. It didn't support the jbosscmp-jdbc.xml deployment descriptor. It's a
trivial fix.
I haven't submitted a patch to this group before, so please forgive me if I
don't get the protocol completely correct. I read how to submit patches on
http://jakarta.apache.org/site/source.html
but if you would like me to do something different in the future, please let
me know.
I did not test against the testsuite, but the fix worked for what I needed to
fix. I think it is trivial enough to not need run against the test suite.
Thank you
Justin
Index: JbossDeploymentTool.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JbossDeploymentTool.java,v
retrieving revision 1.7
diff -u -r1.7 JbossDeploymentTool.java
--- JbossDeploymentTool.java 16 Apr 2002 06:43:04 -0000 1.7
+++ JbossDeploymentTool.java 23 Apr 2002 18:09:03 -0000
@@ -69,6 +69,7 @@
public class JbossDeploymentTool extends GenericDeploymentTool {
protected static final String JBOSS_DD = "jboss.xml";
protected static final String JBOSS_CMPD = "jaws.xml";
+ protected static final String JBOSS_CMP_JDBCD =
"jbosscmp-jdbc.xml";
/** Instance variable that stores the suffix for the jboss jarfile. */
private String jarSuffix = ".jar";
@@ -90,7 +91,12 @@
if (jbossCMPD.exists()) {
ejbFiles.put(META_DIR + JBOSS_CMPD, jbossCMPD);
}
- }
+
+ File jbossCMPJDBCD = new File(getConfig().descriptorDir, ddPrefix +
JBOSS_CMP_JDBCD);
+ if (jbossCMPJDBCD.exists()) {
+ ejbFiles.put(META_DIR + JBOSS_CMP_JDBCD, jbossCMPJDBCD);
+ }
+ }
/**
* Get the vendor specific name of the Jar that will be output. The
modification date
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>