Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2014-2014 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.kuali.common.core.scm.svn;
 
 import static org.kuali.common.util.Encodings.UTF8;
 
 
 
 public final class SvnNativeContext {
 
 	private final String executable;
 	private final CommandLineService cli;
 	private final String encoding;
 	private final String commitDateFormat;
 	@Min(1)
 	private final int streamBufferSize;
 
 	private SvnNativeContext(Builder builder) {
 		this. = builder.executable;
 		this. = builder.cli;
 		this. = builder.encoding;
 		this. = builder.commitDateFormat;
 		this. = builder.streamBufferSize;
 	}
 
 	public static SvnNativeContext build() {
 		return builder().build();
 	}
 
 	public static Builder builder() {
 		return new Builder();
 	}
 
 	public static class Builder extends ValidatingBuilder<SvnNativeContext> {
 
 		private String executable = "svn";
 		private CommandLineService cli = new PlexusCLIService();
 		private String commitDateFormat = "EEE MMM d HH:mm:ss yyyy ZZZZZ"// Mon Jul 21 00:04:50 2014 -0700
 		private String encoding = ;
 		private int streamBufferSize = 80; // typical width of a console
 
 		public Builder withStreamBufferSize(int streamBufferSize) {
 			this. = streamBufferSize;
 			return this;
 		}
 
 		public Builder withEncoding(String encoding) {
 			this. = encoding;
 			return this;
 		}
 
 		public Builder withExecutable(String executable) {
 			this. = executable;
 			return this;
 		}
 
 		public Builder withCli(CommandLineService cli) {
 			this. = cli;
 			return this;
 		}
 
 		public SvnNativeContext build() {
 			return validate(new SvnNativeContext(this));
 		}
 	}
 
 	public String getExecutable() {
 		return ;
 	}
 
 	public CommandLineService getCli() {
 		return ;
 	}
 
 	public String getEncoding() {
 		return ;
 	}
 
 	public String getCommitDateFormat() {
	}
	public int getStreamBufferSize() {
	}
New to GrepCode? Check out our FAQ X