Return-Path: X-Original-To: apmail-empire-db-commits-archive@www.apache.org Delivered-To: apmail-empire-db-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F92711918 for ; Tue, 26 Aug 2014 09:31:59 +0000 (UTC) Received: (qmail 51825 invoked by uid 500); 26 Aug 2014 09:31:59 -0000 Delivered-To: apmail-empire-db-commits-archive@empire-db.apache.org Received: (qmail 51809 invoked by uid 500); 26 Aug 2014 09:31:59 -0000 Mailing-List: contact commits-help@empire-db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: empire-db-dev@empire-db.apache.org Delivered-To: mailing list commits@empire-db.apache.org Received: (qmail 51638 invoked by uid 500); 26 Aug 2014 09:31:58 -0000 Delivered-To: apmail-incubator-empire-db-commits@incubator.apache.org Received: (qmail 51611 invoked by uid 99); 26 Aug 2014 09:31:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2014 09:31:58 +0000 Date: Tue, 26 Aug 2014 09:31:58 +0000 (UTC) From: "jan (JIRA)" To: empire-db-commits@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (EMPIREDB-125) Investigate and solve problem with the location of velocity templates on the code generator when integrated in own projects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/EMPIREDB-125?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] jan updated EMPIREDB-125: ------------------------- Attachment: EMPIREDB-125.patch I think the problem is that Velocity likes to have the template in the root= -folder of the jar.=20 To solve the issue for me I added /src/main/resources/templates to as 'reso= urce' (in pom.xml) and changed some lines in Database.vm and CodeGenWriter.= java (see attached patch) All tests are still working. > Investigate and solve problem with the location of velocity templates on = the code generator when integrated in own projects > -------------------------------------------------------------------------= -------------------------------------------------- > > Key: EMPIREDB-125 > URL: https://issues.apache.org/jira/browse/EMPIREDB-125 > Project: Empire-DB > Issue Type: Bug > Components: Core > Affects Versions: empire-db-2.3.0 > Reporter: Rainer D=C3=B6bele > Priority: Minor > Attachments: EMPIREDB-125.patch > > > When the code generator is embedded in other projects, the velocity templ= ates are not loaded from the resources. > Circumstances for this behavior must be investigated and potential proble= m should be solved. -- This message was sent by Atlassian JIRA (v6.2#6252)