This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 57304
Collapse All | Expand All

(-)project/src/org/netbeans/spi/project/support/ant/PropertyUtils.java (+6 lines)
Lines 599-604 Link Here
599
            }
599
            }
600
            l.add(s);
600
            l.add(s);
601
        }
601
        }
602
        if (dosHack != '\0') {
603
            //the dosHack was the last letter in the input string (not followed by the ':')
604
            //so obviously not a drive letter.
605
            //Fix for issue #57304
606
            l.add(Character.toString(dosHack));
607
        }
602
        return (String[])l.toArray(new String[l.size()]);
608
        return (String[])l.toArray(new String[l.size()]);
603
    }
609
    }
604
610
(-)project/test/unit/src/org/netbeans/spi/project/support/ant/PropertyUtilsTest.java (+6 lines)
Lines 190-195 Link Here
190
            assertEquals("effectively empty path handled",
190
            assertEquals("effectively empty path handled",
191
                Collections.EMPTY_LIST,
191
                Collections.EMPTY_LIST,
192
                Arrays.asList(PropertyUtils.tokenizePath(":;:;")));
192
                Arrays.asList(PropertyUtils.tokenizePath(":;:;")));
193
            assertEquals("one letter directories handled",
194
                Arrays.asList(new String[] {"c:/foo/c", "/foo/c/bar", "c", "/foo/c", "/bar"}),
195
                Arrays.asList(PropertyUtils.tokenizePath("c:/foo/c;/foo/c/bar;c;/foo/c:/bar")));
196
            assertEquals("one letter directories handled2",
197
                Arrays.asList(new String[] {"c"}),
198
                Arrays.asList(PropertyUtils.tokenizePath("c")));
193
    }
199
    }
194
    
200
    
195
    public void testRelativizeFile() throws Exception {
201
    public void testRelativizeFile() throws Exception {

Return to bug 57304