Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 76271 invoked from network); 12 Apr 2010 19:16:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Apr 2010 19:16:50 -0000 Received: (qmail 80774 invoked by uid 500); 12 Apr 2010 19:16:50 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 80741 invoked by uid 500); 12 Apr 2010 19:16:50 -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 80733 invoked by uid 99); 12 Apr 2010 19:16:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 19:16:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.d.dick@gmail.com designates 74.125.92.24 as permitted sender) Received: from [74.125.92.24] (HELO qw-out-2122.google.com) (74.125.92.24) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 19:16:43 +0000 Received: by qw-out-2122.google.com with SMTP id 9so2239688qwb.57 for ; Mon, 12 Apr 2010 12:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:received :message-id:subject:to:content-type; bh=zYJwS0+KR4c1TWa2vliUVzrmMbc/IeaHNN5nvFRCrOo=; b=p/pEzWBb4uQvCeaYf+eT26grX/IhXxRqovkwgF4ntx6ESgC+UGUw+KZ4hUNypU8C1l 2RxgLYBaCGXjiZMc1tHv8HStQCcD2spCbuV0TOolb1sXRdOBCIMicLw+655x+s8UN90r QDTv54wKIp0O2yxz8XKloBk/P9/IwtKakIjnw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=wKg6IljN4Tm91noRa/DDbr5I/gy016UCqP5FGJh895wv+fuL9eAPEc4PGDXvHK75OM JDeZw/H54v/eVTEikr1b8sd/VFQvNg88YkJ6ITcg4/XF3YWpvk5sr4B4/aD0AyMh0sRT ezeQHHgYf/GP/7AV79JnrniZb+gZhSxdY2kBU= MIME-Version: 1.0 Received: by 10.224.73.132 with HTTP; Mon, 12 Apr 2010 12:16:01 -0700 (PDT) From: Michael Dick Date: Mon, 12 Apr 2010 14:16:01 -0500 Received: by 10.224.38.213 with SMTP id c21mr1581255qae.309.1271099781720; Mon, 12 Apr 2010 12:16:21 -0700 (PDT) Message-ID: Subject: Re: svn commit: r933342 - in /openjpa/trunk: openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java openjpa-project/src/doc/manual/jpa_overview_criteria.xml scripts/domain-class.list scripts/mmg.bat scripts/mm To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=001517570922f6ac5a04840efa3f --001517570922f6ac5a04840efa3f Content-Type: text/plain; charset=ISO-8859-1 Hi Pinaki, Two quick comments below : On Mon, Apr 12, 2010 at 1:12 PM, wrote: > Author: ppoddar > Date: Mon Apr 12 18:12:49 2010 > New Revision: 933342 > > URL: http://svn.apache.org/viewvc?rev=933342&view=rev > Log: > OPENJPA-1628,OPENJPA-1187,OPENJPA-1622: Use javac's -s option to control > output rather than extraneous -Aout option > > Modified: > > openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java > openjpa/trunk/openjpa-project/src/doc/manual/jpa_overview_criteria.xml > openjpa/trunk/scripts/domain-class.list > openjpa/trunk/scripts/mmg.bat > openjpa/trunk/scripts/mmg.options > > Modified: > openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java > URL: > http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java?rev=933342&r1=933341&r2=933342&view=diff > > ============================================================================== > --- > openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java > (original) > +++ > openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/AnnotationProcessor6.java > Mon Apr 12 18:12:49 2010 > @@ -20,14 +20,10 @@ package org.apache.openjpa.persistence.m > > import static javax.lang.model.SourceVersion.RELEASE_6; > > -import java.io.File; > import java.io.IOException; > -import java.io.OutputStream; > import java.io.PrintWriter; > -import java.net.URI; > import java.net.URL; > import java.util.Arrays; > -import java.util.Collections; > import java.util.Date; > import java.util.List; > import java.util.Map; > @@ -47,11 +43,7 @@ import javax.lang.model.type.TypeMirror; > import javax.lang.model.util.Elements; > import javax.persistence.metamodel.StaticMetamodel; > import javax.tools.Diagnostic; > -import javax.tools.JavaCompiler; > import javax.tools.JavaFileObject; > -import javax.tools.StandardJavaFileManager; > -import javax.tools.StandardLocation; > -import javax.tools.ToolProvider; > > import org.apache.openjpa.lib.util.Localizer; > import org.apache.openjpa.meta.MetaDataFactory; > @@ -79,26 +71,16 @@ import org.apache.openjpa.persistence.ut > * > *
-Alog={log level}The logging level. Default is > WARN. Permissible values are > * TRACE, INFO, WARN or > ERROR. > - *
-Asource={n} Java source version of the generated > code. Default is 6. > - *
-Anaming={class name} fully-qualified name of a > class implementing > + *
-Asource={n} Java source version of the generated > code. Default is 6. > + *
-Anaming={class name} fully-qualified name of a class > implementing > * org.apache.openjpa.meta.MetaDataFactory that determines > * the name of a meta-class given the name of the original persistent Java > entity class. Defaults to > * org.apache.openjpa.persistence.PersistenceMetaDataFactory > which appends a underscore character > * (_) to the original Java class name. > - *
-Aheader={url} > + *
-Aheader={url} > * A url whose content will appear as comment header to the generated > file(s). Recognizes special value > * ASL for Apache Source License header as comment. By default > adds a OpenJPA proprietary > * text. > - *
-Aout={dir} > - * A directory in the local file system. The generated files will be > written relative to this directory > - * according to the package structure i.e. if dir is > specified as /myproject/generated-src > - * then the generated source code will be written to > /myproject/generated-src/mypackage/MyEntity_.java. > - * If this option is not specified, then an attempt will be made to write > the generated source file in the same > - * directory of the source code of original class > mypackage.MyEntity. The source code location for > - * mypackage.MyEntity can only be determined for Sun JDK6 and > tools.jar being available > - * to the compiler classpath. If the source code location for the original > class can not be determined, and the > - * option is not specified, then the generated source code is written > relative to the current directory according > - * to the package structure. > *
> *
> * > @@ -112,18 +94,15 @@ import org.apache.openjpa.persistence.ut > "javax.persistence.Embeddable", > "javax.persistence.MappedSuperclass" }) > @SupportedOptions({ "openjpa.log", "log", > - "openjpa.out", "out", > - "openjpa.source", "source", > - "openjpa.naming", "naming", > - "openjpa.header", "header", > - "openjpa.generate" > + "openjpa.source", "source", > + "openjpa.naming", "naming", > + "openjpa.header", "header", > + "openjpa.generate" > }) > It seems weird that we have shorter aliases for each option except openjpa.generate, is there a reason that property should be different? It also seems like the short names have the potential for collision with any other annotation parsers which are on the classpath. It's probably safer to qualify them all (like we do with persistence props) just in case. -mike --001517570922f6ac5a04840efa3f--