Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 21631 invoked from network); 20 Sep 2007 16:08:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Sep 2007 16:08:17 -0000 Received: (qmail 44139 invoked by uid 500); 20 Sep 2007 16:08:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 44115 invoked by uid 500); 20 Sep 2007 16:08:02 -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 44103 invoked by uid 99); 20 Sep 2007 16:08:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 09:08:02 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david.vancouvering@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 16:08:01 +0000 Received: by py-out-1112.google.com with SMTP id p76so1092133pyb for ; Thu, 20 Sep 2007 09:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=K+KAgmFvDTbTV8cOkzowfF0wiwN0d9FP0Mvh/7zJ+3k=; b=XS6pOqrBbRw+D0WHciNvopBsoY3oXUnQWlSo0s6RUJyouRYXKGYtIPsCG9RVBJvXZqdo5yYghA9AoO5J51/AlVFAaHC9VyP6K01wS60FQMs3O36T01TMJ0twl8AnEGfRukFeA8rMAyqBIrTFGledzhmPoas6729tcYWD91F1DwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=dwwSvN6gaqcWxFLhCsBSeBmSN62tE8ujq+Fytn/ystcAkarVRLZGe4ate0UVtmRMzVVA/6PACSwg+suLFquwXK2CdO2YuIH7wYXL4ILT2eEXSLxg2QigRGuIMb/AKOd6vqUT9jWYcuJMnlpEEAopIiCGKfRpf3Gcp8WJ8m66Jfk= Received: by 10.65.155.19 with SMTP id h19mr3795532qbo.1190304458718; Thu, 20 Sep 2007 09:07:38 -0700 (PDT) Received: by 10.64.193.10 with HTTP; Thu, 20 Sep 2007 09:07:38 -0700 (PDT) Message-ID: <56a83cd00709200907ye577f2bg8a19eedd9246bebd@mail.gmail.com> Date: Thu, 20 Sep 2007 09:07:38 -0700 From: "David Van Couvering" Sender: david.vancouvering@gmail.com To: derby-dev@db.apache.org Subject: Re: Trying out NB6.0 project in Derby... In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20070918110004.GB7503@atum01.norway.sun.com> <56a83cd00709181000r50229f18kd15078151ce6d328@mail.gmail.com> <46F00863.5080306@sun.com> X-Google-Sender-Auth: 232f1f1e24062a03 X-Virus-Checked: Checked by ClamAV on apache.org Has anyone added ant.jar to the project libraries in the project metadata checked in to Derby? Seems like we should do that. Thanks, David On 9/18/07, Dag H. Wanvik wrote: > =D8ystein Gr=F8vlen writes: > > > With the help of John's excellent writeup at > > http://wiki.apache.org/db-derby/BuildingDerby?highlight=3D%28Netbeans%2= 9#head-681537d04a4de5433e397238dd9bf22eaf8611cb > > I fixed this by setting > > > > ant.library.dir=3D > > > > as described on the wiki. The way you enter this differs a bit in > > Netbeans 6, but it is still easy to figure out how to set it if you > > follow the description. > > I think there are actually two aspects to the ant libraries: This > particular setting compensates for the fact that ant, when not invoked > via the ant(1) script, but programmatically, as does Netbeans, does > not set ant.library.dir, so compilation of Derby would fail. > > In addition, Netbeans 6 tries to compile the sources on its own (not > via the supplied ant file). This, I think, is due to the new > integration between Netbeans and javac to allow Netbeans better access > to semantic information. The above setting is not sufficient: I found > I had to add the path of ant.jar to the libraries setting of the > project as well (in "Java Sources classpath"). After I added the path > there, the little read flags went away in the source on those lines > where the ant libraries are imported. (Of course, other libraries are > needed here, too, cf. those found under tools/java/ and mentioned in > BUILD.txt). > > Another annoyance: Derby has a mix of source levels in the code base; > Netbeans only allows a global setting: when extracting semantic > information via javac Netbeans marks some 1.4 level source as > erroneous if my general source level is 1.5 (needed to allow generics > found in some parts of the code base), the error being not implemented > methods in concrete JDBC classes. I'd love to be able to set source > level per file to work around that. But Netbeans would also need to > allow a mix of platforms to find the correct JDBC interface being > implemenented, marking source level to 1.4 would not be enough; > Netbeans would need access to a 1.4 JDK as well to handle it, sigh. > > Dag >