You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2021/07/06 11:47:35 UTC

[Bug 65437] New: Documentation on os family mac not correct

https://bz.apache.org/bugzilla/show_bug.cgi?id=65437

            Bug ID: 65437
           Summary: Documentation on os family mac not correct
           Product: Ant
           Version: 1.10.10
          Hardware: Other
                OS: other
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Core tasks
          Assignee: notifications@ant.apache.org
          Reporter: jaco@dynasol.nl
  Target Milestone: ---

The documentation on <os family="mac"/> states:

"mac"—for all Apple Macintosh systems prior to Mac OS X

But this doesn't seem to be the case as <os family="mac"/> will match on a
modern macOS also. I currently use the following to distinguish between Linux
and Mac:

<condition property="os.linux"><and><os family="unix"/><not><os
family="mac"/></not></and></condition>
<condition property="os.mac"><and><os family="unix"/><os
family="mac"/></and></condition>

And this is working fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.