Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 21235 invoked from network); 10 Mar 2006 08:35:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Mar 2006 08:35:09 -0000 Received: (qmail 90788 invoked by uid 500); 10 Mar 2006 08:35:08 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 90749 invoked by uid 500); 10 Mar 2006 08:35:07 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 90615 invoked by uid 99); 10 Mar 2006 08:35:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2006 00:35:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2006 00:35:06 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 91B2BD49F9 for ; Fri, 10 Mar 2006 08:34:45 +0000 (GMT) Message-ID: <1267770132.1141979685594.JavaMail.jira@ajax> Date: Fri, 10 Mar 2006 08:34:45 +0000 (GMT) From: "Andrew McIntyre (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1063) Add new jar file to execute tools/network server with java -jar In-Reply-To: <247311841.1141081238936.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1063?page=comments#action_12369823 ] Andrew McIntyre commented on DERBY-1063: ---------------------------------------- I've thought a bit about how to test this. It would involve getting the location of the derbyrun.jar by using getResource for org.apache.derby.iapi.tools.run, then forking a JVM to run java -jar for each of the tools launched by the run class, and then capturing the output of the corresponding usage messages. One problem is that, unlike the other tools, ij doesn't have a usage message. We could Process.destroy() the ij instance after creating it, but there's two problems with that: Process.destroy() isn't (or at least, historically hasn't been) very reliable and the version string is included in ij's startup text. The version could be filtered out, I suppose, but the reliability of Process.destroy() is more problematic. I'd rather not leave zombie processes in test environments due to using Runtime.exec(). If ij had a usage message, then it wouldn't be a problem. I could add a usage message to ij, in conjunction with writing such a test. I'm certainly open to any other good ideas for how to test the run class. Let me know if you have any. > Add new jar file to execute tools/network server with java -jar > --------------------------------------------------------------- > > Key: DERBY-1063 > URL: http://issues.apache.org/jira/browse/DERBY-1063 > Project: Derby > Type: Improvement > Components: Tools > Versions: 10.2.0.0 > Reporter: Andrew McIntyre > Assignee: Andrew McIntyre > Fix For: 10.2.0.0 > Attachments: derby1063.diff, derby1063_v2.diff > > Support execution of the tools with java-jar using the manifest Class-Path attribute. Originally added as part of DERBY-1019, this seeks to reinstate thee functonality that was removed as a result of DERBY-1045. Create a new jar file to execute the tools, along with an improvement to sysinfo to report the location of the jars from which the info properties files are loaded. Note that this does not attempt to mitigate the current problems running sysinfo under a security manager, but to improve the reporting of the locations of the loaded files if they are not loaded from the classpath. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira