1 22 package org.netbeans.lib.cvsclient.response; 23 24 import java.io.*; 25 26 import org.netbeans.lib.cvsclient.util.*; 27 28 32 33 class SetStaticDirectoryResponse implements Response { 34 35 42 public void process(LoggedDataInputStream dis, ResponseServices services) 43 throws ResponseException { 44 try { 45 String localPath = dis.readLine(); 46 47 String repositoryPath = dis.readLine(); 48 services.updateAdminData(localPath, repositoryPath, null); 50 String absPath = services.convertPathname(localPath, repositoryPath); 51 if (services.getGlobalOptions().isExcluded(new File(absPath))) { 52 return; 53 } 54 absPath = absPath + "/CVS"; File absFile = new File(absPath); 56 if (absFile.exists()) { 57 File staticFile = new File(absPath, "Entries.Static"); staticFile.createNewFile(); 59 } 60 } 61 catch (IOException e) { 62 throw new ResponseException(e); 63 } 64 } 65 66 71 public boolean isTerminalResponse() { 72 return false; 73 } 74 } 75 | Popular Tags |