Stefan, On OpenVMS System.getProperty("path.separator") returns ":". This causes the Os condition to classify OpenVMS as Unix. So the check for OpenVMS needs to take place before the one for Unix. And you have to guard the check for Unix against OpenVMS in the same manner as you do against Mac.
Even adding two lines can result in bugs :-) -- knut > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 10. Juli 2003 13:53 > To: [EMAIL PROTECTED] > Subject: cvs commit: > ant/src/main/org/apache/tools/ant/taskdefs/condition Os.java > > > bodewig 2003/07/10 04:52:50 > > Modified: . WHATSNEW > docs/manual/CoreTasks conditions.html > > src/main/org/apache/tools/ant/taskdefs/condition Os.java > Log: > Detect OpenVMS as <os family> > > Revision Changes Path > 1.454 +2 -0 ant/WHATSNEW > > Index: WHATSNEW > =================================================================== > RCS file: /home/cvs/ant/WHATSNEW,v > retrieving revision 1.453 > retrieving revision 1.454 > diff -u -r1.453 -r1.454 > --- WHATSNEW 7 Jul 2003 13:05:02 -0000 1.453 > +++ WHATSNEW 10 Jul 2003 11:52:50 -0000 1.454 > @@ -470,6 +470,8 @@ > * <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.19 +1 -0 ant/docs/manual/CoreTasks/conditions.html > > Index: conditions.html > =================================================================== > RCS file: /home/cvs/ant/docs/manual/CoreTasks/conditions.html,v > retrieving revision 1.18 > retrieving revision 1.19 > diff -u -r1.18 -r1.19 > --- conditions.html 23 May 2003 13:40:36 -0000 1.18 > +++ conditions.html 10 Jul 2003 11:52:50 -0000 1.19 > @@ -96,6 +96,7 @@ > <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> > > > > 1.26 +3 -1 > ant/src/main/org/apache/tools/ant/taskdefs/condition/Os.java > > Index: Os.java > =================================================================== > RCS file: > /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/condition > /Os.java,v > retrieving revision 1.25 > retrieving revision 1.26 > diff -u -r1.25 -r1.26 > --- Os.java 30 May 2003 09:31:45 -0000 1.25 > +++ Os.java 10 Jul 2003 11:52:50 -0000 1.26 > @@ -231,6 +231,8 @@ > || 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 \"" > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >