Package org.jenkinsci.plugins.p4.client
Class Validate
- java.lang.Object
-
- org.jenkinsci.plugins.p4.client.Validate
-
public class Validate extends Object
-
-
Constructor Summary
Constructors Constructor Description Validate(TaskListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs, boolean quiet, String... ignore)
Look for a message in the returned FileSpec from operation.boolean
check(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs, String... ignore)
Look for a message in the returned FileSpec from operation.boolean
checkCatch(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs, boolean quiet, String... ignore)
Only return boolean; false is returned for an exception.boolean
checkCatch(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs, String... ignore)
Only return boolean; false is returned for an exception.void
log(String msg)
-
-
-
Constructor Detail
-
Validate
public Validate(TaskListener listener)
-
-
Method Detail
-
check
public boolean check(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs, String... ignore) throws Exception
Look for a message in the returned FileSpec from operation.- Parameters:
fileSpecs
- List of Perforce file specsignore
- Parameter list of messages to ignore (case insensitive)- Returns:
- true if no errors.
- Throws:
Exception
- push up stack
-
checkCatch
public boolean checkCatch(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs, boolean quiet, String... ignore)
Only return boolean; false is returned for an exception.- Parameters:
fileSpecs
- List of Perforce file specsquiet
- Flag controlling if unknown messages are loggedignore
- Parameter list of messages to ignore (case insensitive)- Returns:
- true if no errors or exceptions
-
checkCatch
public boolean checkCatch(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs, String... ignore)
Only return boolean; false is returned for an exception.- Parameters:
fileSpecs
- List of Perforce file specsignore
- Parameter list of messages to ignore (case insensitive)- Returns:
- true if no errors or exceptions
-
check
public boolean check(List<com.perforce.p4java.core.file.IFileSpec> fileSpecs, boolean quiet, String... ignore) throws Exception
Look for a message in the returned FileSpec from operation.- Parameters:
fileSpecs
- List of Perforce file specsquiet
- Flag controlling if unknown messages are loggedignore
- Parameter list of messages to ignore (case insensitive)- Returns:
- true if no errors.
- Throws:
Exception
- push up stack
-
log
public void log(String msg)
-
-