Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 9955 invoked by uid 500); 13 Apr 2001 16:00:39 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 9945 invoked from network); 13 Apr 2001 16:00:38 -0000 Date: Fri, 13 Apr 2001 08:52:23 -0700 (PDT) Message-Id: <200104131552.IAA13969@nagoya-a.betaversion.org> From: bugzilla@apache.org To: ant-dev@jakarta.apache.org Cc: Subject: [Bug 1333] New - Running the WLRmic task causes Ant to exit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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);