Good day, Graham,

See inline comments.

On 2/6/07, Graham Leggett <[EMAIL PROTECTED]> wrote:
For example, the following profile doesn't match anything on MacosX:

     <profile>
       <id>activate-mac</id>
       <properties>
         <os-platform>macosx</os-platform>
         <os-arch>${os.arch}</os-arch>
       </properties>
       <activation>
         <os>
           <name>Mac OS X</name>
         </os>
       </activation>
     </profile>

I don't know why this should not work ( and I don't have a Mac to try
it on). Try entering the os name all in small caps ( i.e. "mac os x"
).

But, as soon as you try and detect Linux and MacosX side by side, Linux
is detected on MacosX, instead of MacOSX:

     <profile>
       <id>activate-linux</id>
       <properties>
         <os-platform>linux</os-platform>
         <os-arch>${os.arch}</os-arch>
       </properties>
       <activation>
         <os>
           <familylinux</family>
         </os>
       </activation>
     </profile>
     <profile>
       <id>activate-mac</id>
       <properties>
         <os-platform>macosx</os-platform>
         <os-arch>${os.arch}</os-arch>
       </properties>
       <activation>
         <os>
           <family>mac</family>
         </os>
       </activation>
     </profile>
     ...
   <properties>
     <os-platform>linux</os-platform>
     <os-arch>ppc</os-arch>
   </properties>

I don't know why mac is not detected, but linux gets detected (
assuming by "<familylinux</family>" you meant "<family>linux</family>"
) because linux is an unknown os family to maven2. And unknown os
family always gets activated ( I have just filed an issue for this.
see [1] )

Similar weirdness happens when you try and mix family linux with family
unix - linux is reported on solaris, instead of unix.

Same as above - not sure why solaris is not detected as unix ( and I
don't know if it should be or if it's categorize as something else )
but linux gets detected because of [1].

Also, you may want to try and take a look at [2] for a list of
accepted os family activation values.

Cheers,
Franz

[1] http://jira.codehaus.org/browse/MNG-2812
[2] http://docs.codehaus.org/display/MAVENUSER/Profiles

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

Reply via email to