You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by stephanos <ex...@gmx.net> on 2009/12/05 14:31:51 UTC
Conditional archetype generation
Hi,
I need to know if I can use conditions in my archetype.
My use case:
I have an archetype that can be used in various languages (e.g. Java and
Groovy). I want to give the user the base class for the according language.
But I don't want to be both classes (MyClass.java & MyClass.groovy) there -
just one!
Is there a way to only generate one of the two files via maven:generate
depending on a condition/property?
--
View this message in context: http://old.nabble.com/Conditional-archetype-generation-tp26655657p26655657.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Conditional archetype generation
Posted by stephanos <ex...@gmx.net>.
I found a JIRA feature request for what I described. Although it's flagged
"fixed" I think there wasn't really any change there, at least I can't find
any documentation about it.
link: http://jira.codehaus.org/browse/ARCHETYPE-58
Cheers,
stephanos
stephanos wrote:
>
> Hi,
>
> I need to know if I can use conditions in my archetype.
>
> My use case:
> I have an archetype that can be used in various languages (e.g. Java and
> Groovy). I want to give the user the base class for the according
> language. But I don't want to be both classes (MyClass.java &
> MyClass.groovy) there - just one!
>
> Is there a way to only generate one of the two files via maven:generate
> depending on a condition/property?
>
--
View this message in context: http://old.nabble.com/Conditional-archetype-generation-tp26655657p26675944.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org