Return-Path: Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: (qmail 52993 invoked from network); 21 Feb 2009 11:12:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2009 11:12:09 -0000 Received: (qmail 13129 invoked by uid 500); 21 Feb 2009 11:12:09 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 13104 invoked by uid 500); 21 Feb 2009 11:12:09 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 13093 invoked by uid 99); 21 Feb 2009 11:12:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Feb 2009 03:12:09 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Feb 2009 11:12:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 714DB234C498 for ; Sat, 21 Feb 2009 03:11:46 -0800 (PST) Message-ID: <1655597841.1235214706462.JavaMail.jira@brutus> Date: Sat, 21 Feb 2009 03:11:46 -0800 (PST) From: "Robert Zeigler (JIRA)" To: commits@cayenne.apache.org Subject: [jira] Commented: (CAY-1181) Default class generation folder is wrong In-Reply-To: <1077598548.1234787686656.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/cayenne/browse/CAY-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251#action_13251 ] Robert Zeigler commented on CAY-1181: ------------------------------------- Now that CAY-1158 is fixed, it would be /really/ nice if the modeler would pick up the appropriate java source directory automatically. One way to do this would be to code logic directly into the modeler that checks for a maven-like structure and "guesses" at src/main/java. But I'm not necessarily keen on this approach; true, src/main/java is /usually/ where the folder is, but that's not written in stone. In the context of CAY-1158, where the modeler is being loaded directly by maven, it would be nice to have an external method of specifying the class generation folder. Perhaps an additional command line argument, or via a system property? Definitely interested in getting a bit of discussion going on this b/c having to constantly change the output folder is starting to get old; I have an itch to scratch on this one. > Default class generation folder is wrong > ---------------------------------------- > > Key: CAY-1181 > URL: https://issues.apache.org/cayenne/browse/CAY-1181 > Project: Cayenne > Issue Type: Improvement > Components: Cayenne Core Library > Affects Versions: 3.0M5 > Reporter: Andrus Adamchik > Assignee: Andrus Adamchik > > Default class generation folder in the modeler (Tools > Generate Classes > Output directory) is selected to be the folder where cayenne.xml is stored. If a user changes it, it is not saved in user preferences, so on the next attempt to generate classes the old folder is shown. > Another related improvement: In a project that has Maven folder layout, cayenne.xml is often is src/main/resources. In this case we must select a default folder ot be src/mainjava (for "src/test/resources" it should be src/test/java). I.e. we should be smarter when we are dealing with predictable maven structures. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.