On Thu, Jan 14, 2010 at 4:04 AM, Mark Hobson <markhob...@gmail.com> wrote:
> Hi there,
>
> Is there a better way of always activating a profile, unless
> explicitly deactivated, than using a dummy property activator?  For
> example:
>
>        <activation>
>                <property>
>                        <name>!dummy</name>
>                </property>
>        </activation>

I'd probably do it with <name>!noxyz</name> so that _de_activating it
is intuitive with -Dnoxzy.

You can do it with less xml by dropping the activation block and
de-activating by the profile id:

-P !xzy or -P -xzy  (Maven 2.0.10 or later, see
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
.)

-- 
Wendy
-- 
Wendy

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

Reply via email to