Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 5414 invoked from network); 21 Aug 2007 15:33:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 15:33:28 -0000 Received: (qmail 99435 invoked by uid 500); 21 Aug 2007 15:33:25 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 99393 invoked by uid 500); 21 Aug 2007 15:33:25 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 99384 invoked by uid 99); 21 Aug 2007 15:33:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 08:33:25 -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 plinskey@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 15:33:25 +0000 Received: by py-out-1112.google.com with SMTP id f31so2597359pyh for ; Tue, 21 Aug 2007 08:33:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q86ue0PPJa9+7hGAggzeUgtlHYvVhBSwOZpnnWlZ1+oBjbtGGiAwaBvef1E/FbaDnxEmtgVGpySJf8Z0D7H9Zzz4mNI4qxHEuXcz2o6Rw0fOzQotAMfTySlN2aKyyOEPpcaEScvMkOk2q4zT/e19TTvX4Cm9sVu9tReDy4h3j/g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hQmvUlrYj0POiDxR4BS3TB75ZksLP4Ovj6ylzWC5Yu4pGOaGDilm/Jv4xBxDsCAn27xfTeZuXFhFjswSNMJiuihdWwffnCVP4hwwucGlmURxqrJA47CyosGUplSnjI5I7+XuyYveQYUK3bUW25RwRnOlEKxWbQDvfNgPawo9E8A= Received: by 10.35.42.18 with SMTP id u18mr8898142pyj.1187710384187; Tue, 21 Aug 2007 08:33:04 -0700 (PDT) Received: by 10.35.8.4 with HTTP; Tue, 21 Aug 2007 08:33:01 -0700 (PDT) Message-ID: <7262f25e0708210833u1fa0bf18y161faeb9eb66f84@mail.gmail.com> Date: Tue, 21 Aug 2007 08:33:01 -0700 From: "Patrick Linskey" To: dev@openjpa.apache.org Subject: Re: svn commit: r567962 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Dictionary.java In-Reply-To: <008101c7e408$3af62670$6601a8c0@tyan2400> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78E20097-2DD2-463A-B7A2-E0CA2E4EA3A2@apache.org> <008101c7e408$3af62670$6601a8c0@tyan2400> X-Virus-Checked: Checked by ClamAV on apache.org IMO, setting an environment variable and changing the .m2 file are about equivalent, so personally, I don't think that there's a lot of reason to come up with multiple ways to do this. That said, here's another one: I bet that you could just put the requisite arguments into the MAVEN_OPTS env variable. -Patrick On 8/21/07, Phill Moran wrote: > Marc- thanks but I thought the issue we were discussing was activating a maven > profile by the presence of a jar. I am only suggesting to move the trigger to > the env var because, as you pointed out, the jar could be in different locations > on different build machines. Would this not work? > > Phill > > -----Original Message----- > From: Marc Prud'hommeaux [mailto:mprudhomapache@gmail.com] On Behalf Of Marc > Prud'hommeaux > Sent: August 21, 2007 11:17 AM > To: dev@openjpa.apache.org > Subject: Re: svn commit: r567962 - > /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DB2Diction > ary.java > > Phill- > > You can also use an environment variable instead of settings.xml to specify the > JDK 1.4 jar location. See: > > http://openjpa.apache.org/building-openjpa.html#BuildingOpenJPA- > BuildingwithJDK1.4moduleverification > > > > On Aug 21, 2007, at 11:08 AM, Phill Moran wrote: > > > We the other thought might be (and I apologize if I am retreading past > > discussions) to use an env variable as the trigger. > > > > -----Original Message----- > > From: Marc Prud'hommeaux [mailto:mprudhomapache@gmail.com] On > > Behalf Of Marc > > Prud'hommeaux > > Sent: August 21, 2007 11:06 AM > > To: dev@openjpa.apache.org > > Subject: Re: svn commit: r567962 - > > /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/ > > sql/DB2Diction > > ary.java > > > > > > Well, you can't compile the entire project with JDK 1.4 right now. > > Using multiple JVMs to compile seems like it would be considerably > > more > > complicated than using JDK 1.5 for the whole build process with the > > backwards-compatible JDK 1.4 jar specified. > > > > > > On Aug 21, 2007, at 10:58 AM, Phill Moran wrote: > > > >> Can't you trigger on the JDK version setup in the POM. SO if you are > >> compiling on 1.4 one profile is active and if 1.5 another and so on. > >> Is there a specific need to trigger on a jar file > >> > >> -----Original Message----- > >> From: Marc Prud'hommeaux [mailto:mprudhomapache@gmail.com] On Behalf > >> Of Marc Prud'hommeaux > >> Sent: August 21, 2007 10:54 AM > >> To: dev@openjpa.apache.org > >> Subject: Re: svn commit: r567962 - > >> /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/ > >> sql/DB2Diction > >> ary.java > >> > >> > >> Also, you can have the validation automatically happen if your ~/.m2/ > >> settings.xml looks like: > >> > >> > >> > >> > >> java14-validate > >> true >> activation> > >> > >> /System/Library/Frameworks/ > >> JavaVM.framework/Versions/1.4.2/Classes/classes.jar > >> > >> > >> > >> > >> > >> The exact location of "java14.jar" is platform and installation > >> specific, which is why we can't automatically set it (unless anyone > >> has any clever suggestions for figuring out the path of different > >> JVM's installation in a robust manner). > >> > >> > >> > >> On Aug 21, 2007, at 10:41 AM, Patrick Linskey wrote: > >> > >>> On 8/21/07, Kevin Sutter wrote: > >>>> Nice catches, Patrick. These 1.5-specific items keep slipping > >>>> through. > >>>> I've been talking with Mike and Marc about this -- maybe there's > >>>> something more automated that can be done to help prevent these > >>>> type > >>>> of changes from slipping through. > >>> > >>> So Marc and I both catch these things because we're running > >>> automated > >>> build systems that run with the elaborate arguments required to link > >>> against the 1.4 jars. One possibility would be for you guys to > >>> compile with those same args, but that's a bit of a pain. Another > >>> would b e for me to finally get around to making my CI system > >>> available to others who want access to it. I'll look into that in > >>> the > >>> next day or so. > >>> > >>>> The other change you caught with the unbalanced parens kind of > >>>> scares me. > >>>> We ran both the regression bucket and JPA TCK against DB2 without > >>>> this getting caught. Maybe this particular path isn't executed by > >>>> those tests. > >>>> I am checking with Teresa to see if we need some new testcases for > >>>> this. > >>> > >>> As Teresa mentioned, the code itself was fine; the balancing was > >>> just > >>> being done across a method boundary. > >>> > >>> -Patrick > >>> > >>> -- > >>> Patrick Linskey > >>> 202 669 5907 > >> > > > > -- Patrick Linskey 202 669 5907