1 22 package org.netbeans.lib.cvsclient.response; 23 24 import java.io.*; 25 26 import org.netbeans.lib.cvsclient.util.*; 27 28 32 class RemoveEntryResponse implements Response { 33 34 41 public void process(LoggedDataInputStream dis, ResponseServices services) 42 throws ResponseException { 43 try { 44 final String localPath = dis.readLine(); 45 final String repositoryPath = dis.readLine(); 47 49 String filePath = services.convertPathname(localPath, repositoryPath); 50 File toRemove = new File(filePath); 51 if (services.getGlobalOptions().isExcluded(toRemove)) { 52 return; 53 } 54 55 services.removeEntry(toRemove); 56 } 57 catch (Exception e) { 58 throw new ResponseException(e); 59 } 60 } 61 62 67 public boolean isTerminalResponse() { 68 return false; 69 } 70 } 71 | Popular Tags |