I think the plugin's default props should be in plugin.properties
file. No goal should be necessary.

Milos Kleint

On Apr 2, 2005 12:17 AM, Haryon <[EMAIL PROTECTED]> wrote:
> I am creating a plugin, I would like to use some properties pointing
> to some directories (just like maven.build.dir, or maven.src.dir). I
> would like those directories to have a default, but if the user wants
> to override them, he can.
> 
> I have done a prepare-src goal which is prereq of everything that
> needs those properties (it also creates the directories if not
> existing). It looks like this :
> <goal ....>
>    <j:set var="maven.myplugin.import" value="${maven.build.dir}/import" />
> </goal>
> 
> This doesn't allow for user override. I think I'm looking for something like :
> <if not set maven.myplugin.import>
>   <j:set var="maven.myplugin.import" value="${maven.build.dir}/import" />
> </if>
> I'll be adding something like <if test="${maven.myplugin.import ==
> null}">, but I was wondering whether there where a much better way of
> declaring properties required by a plugin and their default value ?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to