Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 17592 invoked from network); 8 Nov 2009 22:05:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Nov 2009 22:05:41 -0000 Received: (qmail 88929 invoked by uid 500); 8 Nov 2009 22:05:41 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 88903 invoked by uid 500); 8 Nov 2009 22:05:41 -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 88893 invoked by uid 99); 8 Nov 2009 22:05:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Nov 2009 22:05:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.78.25] (HELO ey-out-2122.google.com) (74.125.78.25) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Nov 2009 22:05:38 +0000 Received: by ey-out-2122.google.com with SMTP id 4so14769eyf.57 for ; Sun, 08 Nov 2009 14:05:17 -0800 (PST) Received: by 10.213.109.148 with SMTP id j20mr2421921ebp.2.1257717916129; Sun, 08 Nov 2009 14:05:16 -0800 (PST) Received: from GreenStreet (c-66f4e655.79-1-64736c10.cust.bredbandsbolaget.se [85.230.244.102]) by mx.google.com with ESMTPS id 23sm368240eya.12.2009.11.08.14.05.14 (version=SSLv3 cipher=RC4-MD5); Sun, 08 Nov 2009 14:05:14 -0800 (PST) From: "Ludwig Magnusson" To: "'Apache Torque Developers List'" References: <001901ca60ad$f9204210$eb60c630$@com> In-Reply-To: Subject: RE: Adding configuration paramater to maven plugin Date: Sun, 8 Nov 2009 23:05:03 +0100 Message-ID: <001e01ca60bf$86b74c20$9425e460$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcpgvL+2vuk53CpmSZyuXuONbUaiwwAAcgEQ Content-Language: sv Great! I now added a parameter called "suppressWarnings" to the OM-task. If set to true (default is false) it will add the annotation @SuppressWarnings("all") to the base and map classes. This is a feature I'd like to see in future releases since we in our team have a "no warnings policy" and the torque generated classes contains ca 2000 warnings for a database with 50 tables. Is this something that could be useful for torque? Btw Thanks for the link. I had read that page before but I hadn't noticed the part about parameters. There is so much information and it's hard to know where to look. When you sent the link I noticed the parameter part at once. /Ludwig -----Original Message----- From: Thomas Fischer [mailto:fischer@seitenbau.net] Sent: den 8 november 2009 22:45 To: Apache Torque Developers List Subject: RE: Adding configuration paramater to maven plugin "Ludwig Magnusson" schrieb am 08.11.2009 20:59:24: > I am trying to add an extra parameter to the torque:om goal in the maven > plugin. Everything works except one minor detail. I can't read the parameter > from my projects pom.xml. > ... The important thing is the @parameter comment above the private field. This tells the maven plugin builder to read the parameter from the pom and put it there. Setters are never called, the content is directly into the private field (I do not like that, but no way to change it). See e.g. http://maven.apache.org/guides/plugin/guide-java-plugin-development.html For example (from an arbitrary maven plugin) /** * The directory where the source files reside. * * @parameter */ private File sourceDir; Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org