Example #1
0
 public void cleanup() throws SVNException {
   try {
     SVNWCClient wcClient = ourClientManager.getWCClient();
     wcClient.doCleanup(destPath);
   } catch (Exception e) {
   }
 }
 public Object invoke(File ws, VirtualChannel channel) throws IOException, InterruptedException {
   File workingCopy = new File(ws, location.getLocalDir()).getCanonicalFile();
   try {
     log(listener, "Cleanup working copy: " + workingCopy);
     ISVNAuthenticationManager sam = SVNWCUtil.createDefaultAuthenticationManager();
     sam.setAuthenticationProvider(authProvider);
     SVNWCClient wcClient = new SVNWCClient(sam, null);
     wcClient.doCleanup(workingCopy);
     return null;
   } catch (SVNException e) {
     throw new IOException(e.getMessage());
   }
 }