1 package net.sourceforge.cruisecontrol.sourcecontrols; 2 3 import net.sourceforge.cruisecontrol.CruiseControlException; 4 import net.sourceforge.cruisecontrol.SourceControl; 5 import net.sourceforge.cruisecontrol.util.Commandline; 6 import net.sourceforge.cruisecontrol.util.OSEnvironment; 7 8 import java.io.IOException ; 9 import java.io.InputStream ; 10 import java.util.Date ; 11 import java.util.Hashtable ; 12 import java.util.List ; 13 import java.util.Map ; 14 15 22 public class CVS implements SourceControl { 23 24 private ConcurrentVersionsSystem delegate = new ConcurrentVersionsSystem(); 25 26 30 public List getModifications(Date lastBuild, Date now) { 31 return delegate.getModifications(lastBuild, now); 32 } 33 34 38 public void validate() throws CruiseControlException { 39 delegate.validate(); 40 } 41 42 46 public Map getProperties() { 47 return delegate.getProperties(); 48 } 49 50 54 public void setCvsRoot(String cvsroot) { 55 delegate.setCvsRoot(cvsroot); 56 } 57 58 62 public void setLocalWorkingCopy(String local) { 63 delegate.setLocalWorkingCopy(local); 64 } 65 66 70 public void setTag(String tag) { 71 delegate.setTag(tag); 72 } 73 74 78 public void setModule(String module) { 79 delegate.setModule(module); 80 } 81 82 86 public void setProperty(String property) { 87 delegate.setProperty(property); 88 } 89 90 94 public void setPropertyOnDelete(String propertyOnDelete) { 95 delegate.setPropertyOnDelete(propertyOnDelete); 96 } 97 98 102 protected ConcurrentVersionsSystem.Version getCvsServerVersion() { 103 return delegate.getCvsServerVersion(); 104 } 105 106 110 public boolean isCvsNewOutputFormat() { 111 return delegate.isCvsNewOutputFormat(); 112 } 113 114 118 protected OSEnvironment getOSEnvironment() { 119 return delegate.getOSEnvironment(); 120 } 121 122 126 void addAliasToMap(String line) { 127 delegate.addAliasToMap(line); 128 } 129 130 134 public Commandline buildHistoryCommand(Date lastBuildTime, Date checkTime) throws CruiseControlException { 135 return delegate.buildHistoryCommand(lastBuildTime, checkTime); 136 } 137 138 142 protected Commandline getCommandline() { 143 return delegate.getCommandline(); 144 } 145 146 150 static String formatCVSDate(Date date) { 151 return ConcurrentVersionsSystem.formatCVSDate(date); 152 } 153 154 158 protected List parseStream(InputStream input) throws IOException { 159 return delegate.parseStream(input); 160 } 161 162 166 protected void setMailAliases(Hashtable mailAliases) { 167 delegate.setMailAliases(mailAliases); 168 } 169 } 170 | Popular Tags |