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 ClearStaticDirectoryResponse implements Response { 33 34 41 public void process(LoggedDataInputStream dis, ResponseServices services) 42 throws ResponseException { 43 try { 44 final String localPath = dis.readLine(); 45 46 final String repositoryPath = dis.readLine(); 47 48 final String absPath = services.convertPathname(localPath, repositoryPath); 49 if (services.getGlobalOptions().isExcluded(new File(absPath))) { 50 return; 51 } 52 53 services.updateAdminData(localPath, repositoryPath, null); 59 File absFile = new File(absPath, "CVS/Entries.Static"); if (absFile.exists()) { 61 absFile.delete(); 62 } 63 } 64 catch (IOException e) { 65 throw new ResponseException(e); 66 } 67 } 68 69 74 public boolean isTerminalResponse() { 75 return false; 76 } 77 } 78 | Popular Tags |