1 19 package org.netbeans.modules.versioning.system.cvss; 20 21 import org.netbeans.lib.cvsclient.command.GlobalOptions; 22 import org.netbeans.lib.cvsclient.command.PipedFileInformation; 23 import org.netbeans.lib.cvsclient.command.checkout.CheckoutCommand; 24 import org.netbeans.lib.cvsclient.event.FileInfoEvent; 25 import org.openide.filesystems.FileUtil; 26 27 import java.io.File ; 28 29 34 final class VersionsCacheExecutor extends ExecutorSupport { 35 36 private File checkedOutVersion; 37 38 public VersionsCacheExecutor(CheckoutCommand cmd, GlobalOptions options, boolean quiet) { 39 super(CvsVersioningSystem.getInstance(), cmd, options); 40 setNonInteractive(quiet); 41 } 42 43 protected synchronized void commandFinished(ClientRuntime.Result result) { 44 if (checkedOutVersion == null) { 45 } 48 notifyAll(); 49 } 50 51 public void fileInfoGenerated(FileInfoEvent e) { 52 PipedFileInformation info = (PipedFileInformation) e.getInfoContainer(); 53 checkedOutVersion = FileUtil.normalizeFile(info.getTempFile()); 54 } 55 56 public File getCheckedOutVersion() { 57 return checkedOutVersion; 58 } 59 60 protected boolean logCommandOutput() { 61 return ((CheckoutCommand)cmd).isPipeToOutput() == false; 62 } 63 64 65 } 66 | Popular Tags |