System.out.println("event: " + event.getPath()); System.out.println("Full Path: " + event.getFile().getAbsolutePath());
System.out.println(event.getAction() + " : " + event.getPath());
    public static void main(String[] args) {                /*        ISVNReporter r = new ISVNReporter() {            public void setPath(String path, String lockToken, long revision, boolean startEmpty) throws SVNException {                System.out.println("set-path '" + path + "' : " + revision);            }            public void deletePath(String path) throws SVNException {                System.out.println("delete-path '" + path + "'");            }            public void linkPath(SVNRepositoryLocation repository, String path, String lockToken, long revison, boolean startEmtpy) throws SVNException {            }            public void finishReport() throws SVNException {                System.out.println("finish-report");            }            public void abortReport() throws SVNException {                System.out.println("abort-report");            }        };*/                DAVRepositoryFactory.setup();        SVNWCAccess wcAccess = null;        try {            wcAccess = SVNWCAccess.create(new File("c:/javasvn"));            final SVNReporter reporter = new SVNReporter(wcAccess, true);            ISVNReporterBaton baton = new ISVNReporterBaton() {                public void report(ISVNReporter r) throws SVNException {                    reporter.report(r);                }            };            wcAccess.open(true, true);            String url = wcAccess.getAnchor().getEntries().getEntry("").getURL();            System.out.println("update url: " + url);            System.out.println("update target: " + wcAccess.getTargetName());            wcAccess.getTarget().getEntries().close();            SVNUpdateEditor editor = new SVNUpdateEditor(wcAccess, null, true);            wcAccess.setEventDispatcher(new ISVNEventListener() {                public void svnEvent(SVNEvent event) {                    System.out.println("event: " + event.getPath());                    System.out.println("Full Path: " + event.getFile().getAbsolutePath());                }            });            SVNRepository repos = SVNRepositoryFactory.create(SVNRepositoryLocation.parseURL(url));            repos.setCredentialsProvider(new SVNSimpleCredentialsProvider("alex", "cvs"));            repos.update(-1, "".equals(wcAccess.getTargetName()) ? null : wcAccess.getTargetName()                    , true, baton, editor);                        System.out.println("externals collected:");            for (Iterator exts = wcAccess.externals(); exts.hasNext();) {                SVNExternalInfo info = (SVNExternalInfo) exts.next();                System.out.println(info);            }                    } catch (SVNException e) {            e.printStackTrace();        } finally {            try {                wcAccess.close(true, true);            } catch (SVNException e) {                e.printStackTrace();            }        }            }