Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 60255 invoked from network); 25 May 2009 18:57:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 May 2009 18:57:57 -0000 Received: (qmail 38195 invoked by uid 500); 25 May 2009 18:58:10 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 38138 invoked by uid 500); 25 May 2009 18:58:09 -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 38130 invoked by uid 99); 25 May 2009 18:58:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2009 18:58:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2009 18:58:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 99D30234C053 for ; Mon, 25 May 2009 11:57:45 -0700 (PDT) Message-ID: <800037539.1243277865629.JavaMail.jira@brutus> Date: Mon, 25 May 2009 11:57:45 -0700 (PDT) From: "Tiago R. Espinha (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Issue Comment Edited: (DERBY-4217) Make the default port for the suites.All run configurable with a system property. In-Reply-To: <945410248.1241646090281.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712774#action_12712774 ] Tiago R. Espinha edited comment on DERBY-4217 at 5/25/09 11:56 AM: ------------------------------------------------------------------- So to wrap it up in a nutshell. We need four ports as far as testing goes: - derby.tests.port - derby.tests.alternativePort - derby.tests.replicationPort - derby.tests.slavePort And basically, if they aren't explicitly set, they can be defined with offsets based on a port. This port is 1527 unless otherwise overridden with the derby.tests.port property. My idea is to add four (static) properties to TestConfiguration and force the decorators to use these properties [which are set to their default values or to the system properties if they are defined]. The point of having new properties is that I need a coherent way of fetching at least the main port from within other tests (like the ij test). I could just fetch the system property from within the other tests, but that doesn't seem a good programming practice at all. was (Author: espinha): So to wrap it up in a nutshell. We need four ports as far as testing goes: - derby.tests.port - derby.tests.alternativePort - derby.tests.replicationPort - derby.tests.slavePort And basically, if they aren't explicitly set, they can be defined with offsets based on a port. This port is 1527 unless otherwise overridden with the derby.tests.port property. My idea is to add four (static) properties to TestConfiguration and force the decorators to use these properties [which are set to their default values or to the system properties if they are defined]. The point of having new properties is that I need a coherent way of fetching at least the main port from within other tests (like the ij test). I could just fetch the property from within the other tests, but that doesn't seem a good programming practice at all. > Make the default port for the suites.All run configurable with a system property. > --------------------------------------------------------------------------------- > > Key: DERBY-4217 > URL: https://issues.apache.org/jira/browse/DERBY-4217 > Project: Derby > Issue Type: Sub-task > Affects Versions: 10.6.0.0 > Reporter: Tiago R. Espinha > Assignee: Tiago R. Espinha > Attachments: DERBY-4217.patch, DERBY-4217.patch, DERBY-4217.patch, DERBY-4217.patch, DERBY-4217.stat, DERBY-4217.stat, ReproNetworkServerControl.java > > > The goal is to make the port used for suites.All configurable through a system property passed on to the JVM. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.