Browse Source

Detect OpenVMS as <os family>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274803 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
7411138e08
3 changed files with 5 additions and 0 deletions
  1. +2
    -0
      WHATSNEW
  2. +1
    -0
      docs/manual/CoreTasks/conditions.html
  3. +2
    -0
      src/main/org/apache/tools/ant/taskdefs/condition/Os.java

+ 2
- 0
WHATSNEW View File

@@ -470,6 +470,8 @@ Other changes:
* <patch> has a new attribute destfile that can be used to create a new
file instead of patching files in place.

* OpenVMS is detected as a valid OS family.

Changes from Ant 1.5.2 to Ant 1.5.3
===================================



+ 1
- 0
docs/manual/CoreTasks/conditions.html View File

@@ -96,6 +96,7 @@ the tests succeed.
<li>win9x for Microsoft Windows 95 and 98</li>
<li>z/os for z/OS and OS/390</li>
<li>os/400 for OS/400</li>
<li>openvms for OpenVMS</li>
</ul>

<h4>equals</h4>


+ 2
- 0
src/main/org/apache/tools/ant/taskdefs/condition/Os.java View File

@@ -231,6 +231,8 @@ public class Os implements Condition {
|| osName.indexOf("os/390") > -1;
} else if (family.equals("os/400")) {
isFamily = osName.indexOf("os/400") > -1;
} else if (family.equals("openvms")) {
isFamily = osName.indexOf("openvms") > -1;
} else {
throw new BuildException(
"Don\'t know how to detect os family \""


Loading…
Cancel
Save