urls.append(toURL(files[i]));
File f=new File(scanner.getBasedir(), files[i]); urls.append(toURL(f));
    public String filesetsToURL() {        if(filesets.isEmpty()) {            return "";        }        int count=0;        StringBuffer urls=new StringBuffer();        ListIterator list=filesets.listIterator();        while (list.hasNext()) {            FileSet set = (FileSet) list.next();            DirectoryScanner scanner = set.getDirectoryScanner(getProject());            String[] files=scanner.getIncludedFiles();            for(int i=0;i<files.length;i++) {                urls.append(toURL(files[i]));                urls.append(separator);                count++;            }        }        //at this point there is one trailing space to remove, if the list is not empty.        if(count>0) {            urls.delete(urls.length()-separator.length(),urls.length());            return new String(urls);        } else {            return "";        }    }