public class PluginListParser extends Object
| Constructor and Description |
|---|
PluginListParser(boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fileExists(File pluginFile)
Checks if a file exists
|
static boolean |
isURL(String url) |
List<Plugin> |
parsePluginsFromCliOption(String[] plugins) |
List<Plugin> |
parsePluginTxtFile(File pluginTxtFile)
Given a txt file that lists the plugins (in the format artifactId:version:url) to be downloaded on each line,
returns a list of Plugin objects representing the requested plugins
|
List<Plugin> |
parsePluginYamlFile(File pluginYamlFile)
Given a Jenkins yaml file with a plugins root element, will parse the yaml file and create a list of requested
plugins
|
public List<Plugin> parsePluginTxtFile(File pluginTxtFile)
pluginTxtFile - text file containing plugins to be parsedpublic List<Plugin> parsePluginYamlFile(File pluginYamlFile)
pluginYamlFile - yaml file to parsepublic boolean fileExists(File pluginFile)
pluginFile - file of which to check the existencepublic static boolean isURL(String url)
Copyright © 2004–2020. All rights reserved.