http://nagoya.apache.org/bugzilla/show_bug.cgi?id=959
*** shadow/959 Tue Mar 13 04:36:00 2001 --- shadow/959.tmp.4609 Tue Mar 13 04:36:00 2001 *************** *** 0 **** --- 1,46 ---- + +============================================================================+ + | Enhancement: Weblogic RMI Compiler Task | + +----------------------------------------------------------------------------+ + | Bug #: 959 Product: Ant | + | Status: NEW Version: Nightly build | + | Resolution: Platform: All | + | Severity: Enhancement OS/Version: All | + | Priority: Component: Optional Tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + I've sent this to the Ant-Dev mailing list in January, and didn't receive too + much feedback since... So I've decided to try the bug rat now ;-) + + This is a suggestion for a new task for Ant called "wlrmic". This task can be + used to invoke the BEA Weblogic RMI compiler using the same arguments as for the + existing rmic task. + + I have extended Rmic.java to provide some abstractions for getting the + stub/skeleton suffixes, for creating the compiler and for adding the command + arguments. These methods are added differently in the WLRmic class added to the + optional/ejb package. + + I've also fixed a bug in the isValidRmiRemote() method which returned true for + java.rmi.Remote until now. This never caused an error so far because the 'if' + clause in mapFileName() avoided interfaces before calling isValidRmiRemote(); + but it looks cleaner like this. Besides that, I've streamlined this method a bit + to use isAssignableFrom() instead of calling isValidRmiRemote() recursively. + + One issue remains with this implementation: Since the Weblogic RMI compiler + mangles the names of the classes to be + <name_of_the_*interface*_extending_weblogic.rmi.Remote>_WLStub and <...>_WLSkel, + or sometimes even produces files with strange numbers like WLStub123...45.java, + the up-to-date check always fails and the rmi compiler is always called on the + classes implementing weblogic.rmi.Remote. + + The .zip in my mail from Jan. 31 contains the patch file for Rmic.java and a new + source WLRmic.java that should be added to optional/ejb. + + Please let me know if this is worth being added to ant, or if it should be + considered a third party add-on. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
