Class ParameterizedTriggerUtils
- java.lang.Object
-
- hudson.plugins.parameterizedtrigger.ParameterizedTriggerUtils
-
public class ParameterizedTriggerUtils extends Object
Common utility methods.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DISABLE_ACTION_VIEWS_KEY
-
Constructor Summary
Constructors Constructor Description ParameterizedTriggerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Properties
loadProperties(String properties)
Load properties from string.static ParametersAction
mergeParameters(ParametersAction base, ParametersAction overlay)
static String
readFileToString(FilePath f, String encoding)
FilePath.readToString()
with encoding.static String
readFileToString(VirtualFile f)
Read VirtualFile.
-
-
-
Field Detail
-
DISABLE_ACTION_VIEWS_KEY
public static final String DISABLE_ACTION_VIEWS_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadProperties
public static Properties loadProperties(String properties) throws IOException
Load properties from string.- Throws:
IOException
-
readFileToString
public static String readFileToString(FilePath f, String encoding) throws IOException, InterruptedException
FilePath.readToString()
with encoding.- Parameters:
f
- file to readencoding
- null for platform default encoding.- Returns:
- read string
- Throws:
IOException
InterruptedException
-
readFileToString
public static String readFileToString(VirtualFile f) throws IOException, InterruptedException
Read VirtualFile.- Parameters:
f
- file to read- Returns:
- read string
- Throws:
IOException
InterruptedException
-
mergeParameters
public static ParametersAction mergeParameters(ParametersAction base, ParametersAction overlay)
-
-