db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl ...@apache.org>
Subject Re: Template overrides through maven pom.xml.
Date Sun, 02 Dec 2012 11:16:01 GMT
On 23.11.12 09:26, Thomas Fox wrote:
>> The answer depends on which Torque maven plugin you use:
>> torque-4.0-beta1 or torque-3.3 ?
> 
> For Torque 3 , set
>       <plugin>
>         <groupId>org.apache.torque</groupId>
>         <artifactId>torque-maven-plugin</artifactId>
>         <version>3.3</version>
>         <configuration>
>           <useClasspath>false</useClasspath>
> ...
> 
> and torque will only use the templates in src/main/torque/templates and
> ignore its original templates

I recommend
--8<--
        <configuration>
            <templatePath>/path/to/your/templates/</templatePath>
            <useClasspath>true</useClasspath>
--8<--

This will allow you to place just the templates to override into the
template path and use the rest from the torque-templates package.

Bye, Thomas.

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message