Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 50578 invoked from network); 12 Apr 2010 14:57:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Apr 2010 14:57:02 -0000 Received: (qmail 52187 invoked by uid 500); 12 Apr 2010 14:57:02 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 52078 invoked by uid 500); 12 Apr 2010 14:57:02 -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 52070 invoked by uid 99); 12 Apr 2010 14:57:02 -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 14:57:02 +0000 X-ASF-Spam-Status: No, hits=-1267.4 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Apr 2010 14:57:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3CEufPv027063 for ; Mon, 12 Apr 2010 10:56:41 -0400 (EDT) Message-ID: <3411378.24351271084201076.JavaMail.jira@thor> Date: Mon, 12 Apr 2010 10:56:41 -0400 (EDT) From: "Donald Woods (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1628) Output control for generated canonical metamodel source code In-Reply-To: <27024193.22901271078501276.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Woods updated OPENJPA-1628: ---------------------------------- Fix Version/s: 2.1.0 > Output control for generated canonical metamodel source code > ------------------------------------------------------------ > > Key: OPENJPA-1628 > URL: https://issues.apache.org/jira/browse/OPENJPA-1628 > Project: OpenJPA > Issue Type: Improvement > Components: jpa > Affects Versions: 2.0.0-beta3 > Reporter: Frank Schwarz > Fix For: 2.1.0 > > Attachments: OPENJPA-1628.patch > > > I think, the way the JPA metamodel generator places the generated Java files, is flawed. I would have reopened OPENJPA-1187, if I had been able to. > There should be no need to specify a proprietary switch ("openjpa.out") to specify the output dir. There is a switch '-s' to be used with javac to specify the output directory of the generated source files; see http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html. A proprietary switch should only be used as a fallback option for inconsistent java-implementations. > Furthermore, the current approach does not play well with eclipse IDE annotation processing. The generated source files are placed under the eclipse installation directory. I can only prevent this, if I specify a fully qualified "out"-path. This is not feasible, as a project with these settings might be checked out to everywhere. > The current approach with "setSourceOutputDirectory(new File(outDir))" seams only to be working by coincidence with relative paths (e.g with ant-javac). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira