ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1333] New - Running the WLRmic task causes Ant to exit
Date Fri, 13 Apr 2001 15:52:23 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1333

*** shadow/1333	Fri Apr 13 08:52:23 2001
--- shadow/1333.tmp.13966	Fri Apr 13 08:52:23 2001
***************
*** 0 ****
--- 1,32 ----
+ +============================================================================+
+ | Running the WLRmic task causes Ant to exit                                 |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1333                        Product: Ant                     |
+ |       Status: NEW                         Version: Nightly build           |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows NT/2K           |
+ |     Priority: Medium                    Component: Other                   |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: mjamison@ghx.com                                             |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ WLRmic needs to pass the "noexit" flag to Weblogic's rmic compiler.  By default 
+ weblogic's rmic calls System.exit() upon completion and causing Ant to exit.
+ 
+ A fix is to replace:
+             // Create an instance of the rmic
+             Class c = Class.forName("weblogic.rmic");
+             Method doRmic = c.getMethod("main", 
+                                         new Class [] { String[].class });
+             doRmic.invoke(null, new Object[] { cmd.getArguments() });
+ with:
+             String[] tmp  = (String[])cmd.getArguments();
+             String[] args =  new String[tmp.length + 1];
+             args[0] = "-noexit";
+             for (int i = 1; i < args.length; i++)
+                 args[i] = tmp[i-1];
+             weblogic.rmic.main(args);

Mime
View raw message