src/java/org/apache/ivy/ant/IvyArtifactReport.java
// method largely inspired by ant 1.6.5 FileUtils method
method largely inspired by ant 1.6.5 FileUtils method
method largely inspired by ant 1 . 6 . 5 FileUtils method
public String removeLeadingPath(File leading, File path) {
        String l = leading.getAbsolutePath();
        String p = path.getAbsolutePath();
        if (l.equals(p)) {
            return "";
        }
        if (!l.endsWith(File.separator)) {
            l += File.separator;
        }
        return (p.startsWith(l)) ? p.substring(l.length()) : p;
    }
public String removeLeadingPath ( File leading , File path ) { String l = leading . getAbsolutePath ( ) ; String p = path . getAbsolutePath ( ) ; if ( l . equals ( p ) ) { return "" ; } if ( ! l . endsWith ( File . separator ) ) { l += File . separator ; } return ( p . startsWith ( l ) ) ? p . substring ( l . length ( ) ) : p ; }
method largely inspired by ant 1.6.5 FileUtils method
method largely inspired by ant 1 . 6 . 5 FileUtils method
// ensure that l ends with a / // so we never think /foo was a parent directory of /foobar