files[i] = fileToSVNPath((File) paths[i], false); commandLine+=" "+files[i].toString();
files[i] = fileToSVNPath(paths[i], false); commandLine+=" "+files[i];
    public void lock(File[] paths, String comment, boolean force)            throws SVNClientException {        try {            notificationHandler.setCommand(ISVNNotifyListener.Command.LOCK);            String[] files = new String[paths.length];            String commandLine = "lock -m \""+comment+"\"";            if (force)                commandLine+=" --force";            for (int i = 0; i < paths.length; i++) {                files[i] = fileToSVNPath((File) paths[i], false);                commandLine+=" "+files[i].toString();            }            notificationHandler.logCommandLine(commandLine);			notificationHandler.setBaseDir(SVNBaseDir.getBaseDir(paths));            svnClient.lock(files, comment, force);            // Workaround problem that lock method does not notify errors            boolean errors = false;            ISVNStatus status[] = this.getStatus(paths);            for (int i = 0; i < status.length; i++) {                if (status[i].getLockOwner() == null) {                    errors = true;                    notificationHandler.logError("Failed to lock " + status[i].getPath());                 } else {                    notificationHandler.notifyListenersOfChange(status[i].getFile().getAbsolutePath());                }            }            if (errors)                throw new SVNClientException("Failed to lock one or more of the selected resources.");        } catch (ClientException e) {            notificationHandler.logException(e);            throw new SVNClientException(e);        }    }