IntrospectionHelper's testcase. Submitted by: Jeff Tulley <JTULLEY@novell.com> git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269800 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -14,6 +14,9 @@ Other changes: | |||||
| * The attribute zipfile in GZip has been deprecated and superseded | * The attribute zipfile in GZip has been deprecated and superseded | ||||
| by "tofile" attribute. | by "tofile" attribute. | ||||
| * Added a new condition <isset> that test for the existence of a | |||||
| property to the condition task. | |||||
| Fixed bugs: | Fixed bugs: | ||||
| ----------- | ----------- | ||||
| @@ -323,12 +323,6 @@ public class FileUtils { | |||||
| return normalize(filename); | return normalize(filename); | ||||
| } | } | ||||
| if (filename.length() >= 2 && | |||||
| Character.isLetter(filename.charAt(0)) && | |||||
| filename.charAt(1) == ':') { | |||||
| return normalize(filename); | |||||
| } | |||||
| if (file == null) { | if (file == null) { | ||||
| return new File(filename); | return new File(filename); | ||||
| } | } | ||||
| @@ -162,7 +162,7 @@ public class IntrospectionHelperTest extends TestCase { | |||||
| } | } | ||||
| try { | try { | ||||
| ih.getElementType("eleven"); | ih.getElementType("eleven"); | ||||
| fail("addTen takes primitive argument"); | |||||
| fail("addEleven takes primitive argument"); | |||||
| } catch (BuildException be) { | } catch (BuildException be) { | ||||
| } | } | ||||
| try { | try { | ||||
| @@ -424,6 +424,8 @@ public class IntrospectionHelperTest extends TestCase { | |||||
| public void setTen(File f) { | public void setTen(File f) { | ||||
| if (isUnixStyle) { | if (isUnixStyle) { | ||||
| assertEquals("/tmp/2", f.getAbsolutePath()); | assertEquals("/tmp/2", f.getAbsolutePath()); | ||||
| } else if (System.getProperty("os.name").toLowerCase().equals("netware")) { | |||||
| assertEquals("\\tmp\\2", f.getAbsolutePath().toLowerCase()); | |||||
| } else { | } else { | ||||
| assertEquals(":\\tmp\\2", f.getAbsolutePath().toLowerCase().substring(1)); | assertEquals(":\\tmp\\2", f.getAbsolutePath().toLowerCase().substring(1)); | ||||
| } | } | ||||