Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 94556 invoked from network); 14 Apr 2010 17:19:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Apr 2010 17:19:13 -0000 Received: (qmail 7530 invoked by uid 500); 14 Apr 2010 17:19:13 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 7445 invoked by uid 500); 14 Apr 2010 17:19:13 -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 7436 invoked by uid 99); 14 Apr 2010 17:19:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 17:19:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Wed, 14 Apr 2010 17:19:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3EHImQF007847 for ; Wed, 14 Apr 2010 13:18:48 -0400 (EDT) Message-ID: <27787009.118901271265528461.JavaMail.jira@thor> Date: Wed, 14 Apr 2010 13:18:48 -0400 (EDT) From: "Pinaki Poddar (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pinaki Poddar resolved OPENJPA-1628. ------------------------------------ Fix Version/s: 2.0.0 (was: 2.1.0) Resolution: Fixed > 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 > Assignee: Pinaki Poddar > Fix For: 2.0.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