Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4CE768838 for ; Sat, 3 Sep 2011 04:04:58 +0000 (UTC) Received: (qmail 193 invoked by uid 500); 3 Sep 2011 04:04:56 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 101 invoked by uid 500); 3 Sep 2011 04:04:45 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 99978 invoked by uid 99); 3 Sep 2011 04:04:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 04:04:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.24.207.26] (HELO mail.seitenbau.net) (217.24.207.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 04:04:31 +0000 Received: from [192.168.15.18] (port=8442 helo=www.seitenbau.net) by mail.seitenbau.net with esmtp (Exim 4.69) (envelope-from ) id 1QzhSe-00040n-0j for torque-dev@db.apache.org; Sat, 03 Sep 2011 06:04:04 +0200 X-CTCH-RefID: str=0001.0A0B0203.4E61A734.004B,ss=1,fgs=0 In-Reply-To: <4E5E41DB.9070102@apache.org> References: <4E5E0570.1000909@apache.org> <4E5E41DB.9070102@apache.org> Subject: Re: Test project problems X-KeepSent: F6F5D3A3:B03A31A2-C1257900:0015FFDC; type=4; name=$KeepSent To: "Apache Torque Developers List" X-Mailer: Lotus Notes Release 8.5.1 September 28, 2009 Message-ID: From: Thomas Fox Date: Sat, 3 Sep 2011 06:04:03 +0200 X-MIMETrack: Serialize by Router on www/seitenbau(Release 8.5HF467 | May 15, 2009) at 09/03/2011 06:04:03 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII > > Which ones? we still use junit 3, the tomcat dependencies can be old (they > > are for testing jndi access, so the jndi container version is not a > > problem). Not sure about avalon. > > Avalon and Fulcrum basically. The referenced versions are converted from > the Maven1 repository so they don't have the correct dependencies and so. > > > If you do update the dependencies, please make sure that the dependencies > > can be fetched from maven central. The current versions can be fetched from > > there, which is a big feature. > > Sure. > This is what Maven is about, mostly, isn't it? fine with me. > >> - MAIN problem here: The generator creates invalid SQL for MySQL. From > >> what I understand, the $stringUtils.chop() call is supposed to remove > >> the last comma of the part of a statement which it fails to do for some > >> reason. I'm lost with this one. > > > > I cannot reproduce this also. From a fresh checkout, install and mvn test, > [...] > > Can you please try with maven 2.0.9 ? > > Which jvm do you use ? I use jdk1.6.0_20. > > I'm on Mac OS X 10.6 with jdk 1.6.0_26. > > The SQL looks like this: > > --8<-- > CREATE TABLE a > ( > a_id INTEGER NOT NULL, > name VARCHAR(50) NOT NULL, > PRIMARY KEY(a_id), > ); > --8<-- > > What is $stringUtils.chop($pk,2) supposed to do? Mac OS has UNIX-style > line-endings, if that matters. I am quite sure the line endings style is the problem. stringUtils.chop ($pk,2) is org.apache.velocity.util.StringUtils.chop(String, int) which takes the system's line separator into consideration. Not sure whether this was changed since velocity 1.4.... I'll look into it and try to come up with a solution this weekend. Cheers, Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org