As I've been mailing a bit about on the dev-list, I've been working on a new optional task for generating ejb client jars. I now believe this task is ready for its first use, so I've produced at patch for you committers. I've also written testcases, javadoc and documentation! The testcase needs j2ee.jar in lib/optional for building and running (it builds a bean for testinput, which requires javax.ejb), but a condition in build.xml is controlling that. I'm a bit uncertain about what happens now. The patch I've made is against HEAD, which currently is 1.7alpha. Naturally, if it gets accepted by some committer, I would like to see it in the 1.6 branch too. I can produce a patch against that one too, if it is needed? Hmmm ... cannot find an attach button here in bugzilla. Maybe it is first possible when I've submitted ....
Created attachment 8343 [details] ejbclientjar task patch against HEAD
Created attachment 8344 [details] ejbclientjar new files to go with patch against HEAD
Created attachment 8414 [details] ejbclientjar task patch against HEAD with support-element support
Created attachment 8415 [details] New files needed for patch dated 20031001 (just submitted as attachment)
Hi, I just submitted a new patch and a new newfiles attachment to this enhancement request, which effectively deprecates the two attachments dated "09/24/03". It includes added functionality of a support-element, like in the ejbjar task. There are docs and testcases for the added functionality too! Again the patch is against HEAD, but I will be happy to produce patches against 1.6, if someone thinks it is okay for the new task to come into 1.6 even though it seems we have entered beta :-) Maybe someone which is "ejb-aware" can have a look at the patch? I noticed it was a "Tim Fennell" who committed the first version of the EjbJar task. Are you still a committer Tim? BTW: As with ejbjar task, ejbclientjar task also depends upon bcel.jar. And if you want to run the testcase, you will need j2ee.jar.
I've applied your patch to the 1.7 RC1 version but it doesn't work to me. The error I've got: [ejbclientjar] Finding root-classes from 'META-INF/ejb-jar.xml' inside 'MyBeans.jar' BUILD FAILED build.xml:222: could not find required client jar class: [Lweblogic.deployment.descriptors.xml.EnvironmentEntry; I guess the reason is in DependencyAnalyzer's getClassDependencies method. It returns class names along with field descriptor characters (like '[L' for array of Objects). And your methods don't expect such a result.
*** Bug 21543 has been marked as a duplicate of this bug. ***
*** Bug 30518 has been marked as a duplicate of this bug. ***