location = SVNRepositoryLocation.parseURL(moduleName); final String url = location.toCanonicalForm();  File path = new File("", PathUtil.decode(PathUtil.tail(url))).getAbsoluteFile();
File path = new File(destPath).getAbsoluteFile();
    public long checkout(String moduleName, String destPath, Revision revision, Revision pegRevision, boolean recurse, boolean ignoreExternals) throws ClientException {        SVNRepositoryLocation location = null;        try {            location = SVNRepositoryLocation.parseURL(moduleName);            final String url = location.toCanonicalForm();            File path = new File("", PathUtil.decode(PathUtil.tail(url))).getAbsoluteFile();            SVNUpdateClient updater = createSVNUpdateClient();            updater.setIgnoreExternals(ignoreExternals);            return updater.doCheckout(url, path, SVNConverterUtil.getSVNRevision(pegRevision),                    SVNConverterUtil.getSVNRevision(revision), recurse);        } catch (SVNException e) {            throwException(e);        }        return -1;    }