Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 46925 invoked from network); 30 May 2005 20:43:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2005 20:43:31 -0000 Received: (qmail 57656 invoked by uid 500); 30 May 2005 20:43:29 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57614 invoked by uid 500); 30 May 2005 20:43:29 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 57592 invoked by uid 99); 30 May 2005 20:43:29 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_20_30,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of m.v.lunteren@gmail.com designates 64.233.162.201 as permitted sender) Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.201) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 30 May 2005 13:43:27 -0700 Received: by zproxy.gmail.com with SMTP id 8so1719151nzo for ; Mon, 30 May 2005 13:43:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=A6Ukifpj1k33USU4O7kUz2HK3r/ZXorATnR8E+5xoqqPyxBz9mvJwXtrn8X9HFQAja1bM2ELoZAzPoAZ479SSKu+MHVRDhSPTUdEq/+4p7J6xEEJoW3kvax24ijWLxX44H7cmoy0bg1XTscg1uSs6Npqodug/E3zYhIb6iKVy0Q= Received: by 10.36.157.11 with SMTP id f11mr1979045nze; Mon, 30 May 2005 13:43:25 -0700 (PDT) Received: by 10.36.13.17 with HTTP; Mon, 30 May 2005 13:43:25 -0700 (PDT) Message-ID: Date: Mon, 30 May 2005 13:43:25 -0700 From: Myrna van Lunteren Reply-To: Myrna van Lunteren To: Derby Development Subject: Re: [PATCH] Pass ij.dataSource properties from RunList to RunTest WAS Re: J9 Foundation & RunSuite In-Reply-To: <429B3E12.50801@debrunners.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11858_2045506.1117485805678" References: <4295FC1A.3010807@debrunners.com> <42988137.3030103@debrunners.com> <54ac72d705052923023ecbb3f8@mail.gmail.com> <429B3E12.50801@debrunners.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_11858_2045506.1117485805678 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline As far as I can see this works fine. However, I've been using my little props.java as a test, and there's a=20 DriverManager call in RunTest that is causing a problem at line 2311, which= =20 with foundation of course gives a ClassNotFoundException, when running with= =20 -Duseprocess=3Dfalse. It's only with .java tests, so e.g. the nist test suite would not suffer. How do we get around that one - add another catch & ignore those, or...? Myrna On 5/30/05, Daniel John Debrunner wrote:=20 >=20 > Andrew McIntyre wrote: > > On 5/28/05, Daniel John Debrunner wrote: > > > >>Patch that makes RunList pass on any ij.dataSource properties in the > >>System set to forked RunTest. > >> > >>This allows suites to be run using a datasource for the default > >>connection instead of DriverManager. Allows testing of JSR169. > > > > > > Haven't tested it yet, but it looks fine to me. Is there a reason to > > enumerate the system properties instead of just using getProperty? Is > > System.getProperty() missing from JSR169? >=20 > The reason is that a number of properties are required to setup a > connection using a data source and they all start with 'ij.dataSource'. > And the exact names of the properties depends on the properties > supported by the data source, thus the scheme needs to be flexible. >=20 > Requires a single > ij.dataSource=3D >=20 > and then one or more of >=20 > ij.dataSource.=3D >=20 > where is a Java Bean property of the DataSource implementation= . >=20 > Dan. >=20 > ------=_Part_11858_2045506.1117485805678 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
As far as I can see this works fine.
 
However, I've been using my little props.java as a test, and there's a= DriverManager call in RunTest that is causing a problem at line 2311, = ;which with foundation of course gives a ClassNotFoundException, when runni= ng with -Duseprocess=3Dfalse.
 
It's only with .java tests, so e.g. the nist test suite would not suff= er.
 
How do we get around that one - add another catch & ignore those, = or...?
 
Myrna


 
On 5/30/05, = Daniel John Debrunner <djd@deb= runners.com> wrote:
Andrew McIntyre wrote:
> O= n 5/28/05, Daniel John Debrunner <= djd@debrunners.com > wrote:
>
>>Patch that makes RunList pass on any ij.= dataSource properties in the
>>System set to forked RunTest.
&g= t;>
>>This allows suites to be run using a datasource for the d= efault
>>connection instead of DriverManager. Allows testing of JSR169.<= br>>
>
> Haven't tested it yet, but it looks fine to me. Is = there a reason to
> enumerate the system properties instead of just u= sing getProperty? Is
> System.getProperty() missing from JSR169?

The reason is tha= t a number of properties are required to setup a
connection using a data= source and they all start with 'ij.dataSource'.
And the exact names of = the properties depends on the properties
supported by the data source, thus the scheme needs to be flexible.
=
Requires a single
ij.dataSource=3D<class name of data source impl= ementation>

and then one or more of

ij.dataSource.<prop= erty>=3D<value>

where <property> is a Java Bean property of the DataSource im= plementation.

Dan.


------=_Part_11858_2045506.1117485805678--