I've been in the process of upgrading our IDE to weblogic workshop, and have been working on implementing ANT as our build process. Below is a snippet from an *existing* makefile which is used specifically in this case to create an EJB using MAKE:
# INCLUDE JAVA FILES THAT ARE REQUIRED FOR THE EJAVA BEAN FILES
I have tried to approach this from a deployment descriptor standpoint, from an ejbjar (build.xml) standpoint, but it doesn't seem I can add files this way.
The next two initially promising ways, won't work for our application:
ejbjar - 'Support' (initially the most promising..however...) from apache.org, quote "Note that when ejbjar generates more than one jar file, the support files are added to each one", ejbjar is generating about 140 ejbs, each ejb needs only about three to four support files....this means using support gives each ejb ...way too many files.
ejbjar - 'Dependencies' (none/super/full, I tried both super/full and they're adding way too many files to each ejb.)
Any help would be greatly appreciated!
P.S. For reference, the following is the ejb compile/deployment section of
Well I spent long hours researching the solution and unfortunately found noone that's come into this problem elsewhere, so I'm posting my solution for anyone that runs into this problem.
The problem is that the ejbjar task has no way of adding these extra files to specific ejbs. (<support> does do this, but it adds EVERY support file to EVERY ejb, I needed ejb specific files added to each specific ejb)
The JAR task, however, does. First I ran ejbjar (with noEjbc="true"), then ran wlappc to compile the ejbs, then finally, using the update="true" parameter in the JAR task, I was able to add each file to each ejb, which added many lines to my build.xml but in the end, it worked. Here is a code example: