You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Graham Leggett <mi...@sharp.fm> on 2007/02/02 16:25:47 UTC

Activating profiles based on OS

Hi all,

According to the docs for configuring profiles at
http://maven.apache.org/settings.html#Profiles, it is apparently possible
to activate a profile based on OS parameters.

The example given activates when Windows is present:

        <os>
          <name>Windows XP</name>
          <family>Windows</family>
          <arch>x86</arch>
          <version>5.1.2600</version>
        </os>

I cannot find a definitive list anywhere obvious of possible OS values
that you can detect on, is there some way of finding out these values for
Linux, Solaris and Macosx?

Regards,
Graham
--



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


Re: Activating profiles based on OS

Posted by Franz Allan Valencia See <fr...@gmail.com>.
Good day to you, Graham,

You can take a look at [1].

Cheers,
Franz

[1] http://docs.codehaus.org/display/MAVENUSER/Profiles

On 2/2/07, Graham Leggett <mi...@sharp.fm> wrote:
> Hi all,
>
> According to the docs for configuring profiles at
> http://maven.apache.org/settings.html#Profiles, it is apparently possible
> to activate a profile based on OS parameters.
>
> The example given activates when Windows is present:
>
>         <os>
>           <name>Windows XP</name>
>           <family>Windows</family>
>           <arch>x86</arch>
>           <version>5.1.2600</version>
>         </os>
>
> I cannot find a definitive list anywhere obvious of possible OS values
> that you can detect on, is there some way of finding out these values for
> Linux, Solaris and Macosx?
>
> Regards,
> Graham
> --
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

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