You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Amato Massimiliano (TLAB)" <Ma...@tradinglab.unicredit.it> on 2004/03/23 15:59:05 UTC

Writing Plugin and Property file

Hello,

I've written a set of XDT files that generates a full set of Delegator for each EJB processed by xdoclet:ejbdoclet, now I am trying a plugin that handles that.

1 ) I have some problems, since first of all i cannot find a way to tell the plugin that the xdt files are not in the local directory (as he suppose) but are under maven plugin directory. I don't want to put the same xdt files in all the subproject using EJB

2 ) In my plugin i have to call xdoclet:ejbdoclet as prerequisite, so i need to have a project.properties that contains the appropiate xdoclet config parameters. The problem is that this configuration are read only from the project.properties file in the final project directory and not from the one in the maven plugin directory that uses xdoclet plugin.

>From what i understand plugin.properties should contains configuration data for the plugin itself, while project.properties shuold contains default values for other plugins called by the plugin itself..


Any help would be great
Thanks
Max


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Writing Plugin and Property file

Posted by Webb Morris <we...@yahoo.com>.
--- "Amato Massimiliano (TLAB)" <Ma...@tradinglab.unicredit.it> wrote:
> Hello,
> 
> I've written a set of XDT files that generates a full set of Delegator for each EJB processed by
> xdoclet:ejbdoclet, now I am trying a plugin that handles that.
> 
> 1 ) I have some problems, since first of all i cannot find a way to tell the plugin that the xdt
> files are not in the local directory (as he suppose) but are under maven plugin directory. I
> don't want to put the same xdt files in all the subproject using EJB
> 

The way that I went about something similar was to create a custom xdoclet module. It's fairly
trivial to create a task that simply uses your xdt files. You can then package this module and
deploy it to your ANT_HOME/lib (like your other xdoclet modules). Then you simply direct your
plugin to use this new ant task.

> 2 ) In my plugin i have to call xdoclet:ejbdoclet as prerequisite, so i need to have a
> project.properties that contains the appropiate xdoclet config parameters. The problem is that
> this configuration are read only from the project.properties file in the final project directory
> and not from the one in the maven plugin directory that uses xdoclet plugin.
> 

If I understand you correctly, you mean that the project (or build) .properties files in the
project that uses the plugin are overriding the plugins default properties (which should be
defined in plugin.properties).  This is the way in which Maven is designed. If you do not want the
plugin's properties to be overriden, then you need to not include them in the project's
properties.

> From what i understand plugin.properties should contains configuration data for the plugin
> itself, while project.properties shuold contains default values for other plugins called by the
> plugin itself..
> 

The plugin.properties contains the default values for the properties that your plugin allows to be
set.  The project.properties of a plugin project is no different than any other project.properties
for a non-plugin project.

> 
> Any help would be great
> Thanks
> Max
> 

WM

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org