final String absolutePath = new File(destPath).getAbsolutePath(); final ISVNWorkspace workspace = createWorkspace(absolutePath); workspace.addWorkspaceListener(new SVNWorkspaceAdapter() { public void modified(String path, int kind) { try { path = convertPath(absolutePath, workspace, path); } catch (IOException e) {}
final ISVNWorkspace workspace = createWorkspace(destPathParent); final String relativePath = SVNUtil.getWorkspacePath(workspace, destPathParent) + "/" + new File(destPath).getName(); try { println(out, "A  " + convertPath(destPathParent, workspace, relativePath)); } catch (IOException ex) {}
    private void runRemoteToLocal(final PrintStream out) throws SVNException {        final String srcURL = getCommandLine().getURL(0);        final String destPathParent = getCommandLine().getPathAt(0);        final String destPath = destPathParent + "/" + PathUtil.tail(srcURL);        long revision = -1;        if (getCommandLine().hasArgument(SVNArgument.REVISION)) {            String revStr = (String) getCommandLine().getArgumentValue(SVNArgument.REVISION);            revision = Long.parseLong(revStr);        }        final SVNRepository srcRepository = createRepository(srcURL);        srcRepository.testConnection();        final ISVNWorkspace checkoutWorkspace = SVNWorkspaceManager.createWorkspace("file", destPath);        checkoutWorkspace.setCredentials(srcRepository.getCredentialsProvider());        final long checkedOutRevision = checkoutWorkspace.checkout(srcRepository.getLocation(), revision, true, true);        SVNAssert.assertTrue(revision == checkedOutRevision);        final String absolutePath = new File(destPath).getAbsolutePath();        final ISVNWorkspace workspace = createWorkspace(absolutePath);        workspace.addWorkspaceListener(new SVNWorkspaceAdapter() {            public void modified(String path, int kind) {                try {                    path = convertPath(absolutePath, workspace, path);                } catch (IOException e) {}                DebugLog.log("A  " + path);                out.println("A  " + path);            }        });        final String relativePath = SVNUtil.getWorkspacePath(workspace, absolutePath);        workspace.add(relativePath, true, true);        workspace.setPropertyValue(relativePath, SVNProperty.COPYFROM_URL, srcURL);        workspace.setPropertyValue(relativePath, SVNProperty.COPYFROM_REVISION, String.valueOf(revision));    }