db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fischer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (TORQUE-2) Torque plugin for Maven 2
Date Wed, 05 Apr 2006 07:40:57 GMT
    [ http://issues.apache.org/jira/browse/TORQUE-2?page=comments#action_12373239 ] 

Thomas Fischer commented on TORQUE-2:
-------------------------------------

I have looked at the implementation of the om goal. The main focus of the maven2 plugin is
to translate the initialisation process of maven2 to an initialisation process of the generator's
ant files.
I have created an implementation of the OM goal based on Raphael's draft which could serve
as a draft for other implementations. I have changed the following things from Raphael's draft:
- Changed the maven2 initialisation source. The idea is to make all settings in the pom.xml.
Therefore, no context properties needs to be created by the user, this is generated automatically
by the mojo. 
- Changed the class hierarchy to match the class hierarchy in the generator. On top of the
classes corresponding to the generator, we need one more class level which translates the
settings in the pom.xml to the context properties file needed by velocity. So there is TexenTaskMojo
wrapping a Texen task, DataModelTaskMojo wrapping a DataModelTask, and the OMTask on top which
knows the context properties for om generation.
- Changed package name to org.apache.torque.mojo
- Changed code style to torque code style

The following things still need to be done in the mojo
- make all needed context properties configurable (just the basic properties are configurable
now to prove the principle)
- I'd like to replace the PlexusTestCase by a simple JUnit test case to keep things simple
(we do not use plexus anywhere else in Torque)

I'll attach the draft as maven2-plugin.jar. For clarity, I have removed all other stuff which
is not needed by the om goal.

> Torque plugin for Maven 2
> -------------------------
>
>          Key: TORQUE-2
>          URL: http://issues.apache.org/jira/browse/TORQUE-2
>      Project: Torque
>         Type: New Feature

>   Components: Maven-Plugin
>     Versions: 3.1.1
>     Reporter: Raphaël Piéroni
>     Assignee: Thomas Fischer
>  Attachments: maven_log_file.txt, torque-maven-plugin.tgz
>
> Here is an archive (tgz) of a first draft of a maven 2 plugin for using torque with some
of the features of the torque plugin for maven 1.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message