
com.github.marschal.svndiffstat.ProtocolParameterValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of svn-diffstat Show documentation
Show all versions of svn-diffstat Show documentation
Creates git like diff stat over a whole svn repository.
The newest version!
package com.github.marschal.svndiffstat;
import com.beust.jcommander.IValueValidator;
import com.beust.jcommander.ParameterException;
public class ProtocolParameterValidator implements IValueValidator {
static final String FILE = "file";
static final String DAV = "dav";
static final String SVN = "svn";
@Override
public void validate(String name, String value) throws ParameterException {
if (value != null) {
if (!value.equals(FILE) && !value.equals(DAV) && !value.equals(SVN)) {
throw new ParameterException("Parameter " + name + " should be missing or one of \"" + FILE + "\", \"" + DAV + "\", \"" + SVN + "\" (found " + value +")");
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy