[ http://jira.codehaus.org/browse/MNG-1509?page=comments#action_53401 ]
David Boden commented on MNG-1509:
----------------------------------
Morning. This is marked as fixed in 2.0.1 (which is now available on the
ibiblio repository).
I'm using the following:
<activation>
<os>
<family>windows</family>
</os>
</activation>
This doesn't cause a profile to be activated when building on my Windows XP
machine. If I set <activeByDefault/> then my build works and includes the
profile as expected.
Help appreciated.
Moreover, I've looked through the commons-lang API documentation and source
code. I can't find reference to anything resembling the concept of an operating
system family identifier (e.g. "windows" or "unix").
import org.apache.commons.lang.SystemUtils;
public class CommonsLang {
public static void main(String[] args) {
System.out.println("IsOSWindows: " + SystemUtils.IS_OS_WINDOWS);
System.out.println("OSName: " + SystemUtils.OS_NAME);
System.out.println("OSArch: " + SystemUtils.OS_ARCH);
System.out.println("OSVersion: " + SystemUtils.OS_VERSION);
}
}
--- Output ---
IsOSWindows: true
OSName: Windows XP
OSArch: x86
OSVersion: 5.1
--- End Output ---
Setting <os><name>Windows XP</name></os> doesn't do the trick either.
> Profile activation by os doesn't work
> -------------------------------------
>
> Key: MNG-1509
> URL: http://jira.codehaus.org/browse/MNG-1509
> Project: Maven 2
> Type: Bug
> Components: Inheritence and Interpolation
> Versions: 2.0
> Environment: Ubuntu 5.10 maven 2.0
> Reporter: Bernd Bohmann
> Assignee: John Casey
> Fix For: 2.0.1
> Attachments: DefaultProfileManagerTest.java.patch,
> OperatingSystemProfileActivator.java.patch,
> OperatingSystemProfileActivator.java.patch, components.xml.patch
>
>
> Profile activation by os doesn't work.
> OperatingSystemProfileActivator is missing in components.xml.
> Implementation of OperatingSystemProfileActivator.isActive is wrong.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]