Modifier and Type | Method and Description |
---|---|
static ProjectConfig |
ProjectConfigs.findFromFolder(File folder)
Tries to find the project configuration from the current directory or a parent folder.
|
static ProjectConfig |
ProjectConfigs.loadFromFolder(File folder)
Returns the configuration from the
ProjectConfigs.FILE_NAME in the given folder or returns the default configuration |
static ProjectConfig |
ProjectConfigs.loadFromUrl(String url)
Returns the project config from the given url if it exists or null
|
static ProjectConfig |
ProjectConfigs.loadFromUrl(URL url)
Returns the project config from the given url if it exists or null
|
static ProjectConfig |
ProjectConfigs.parseProjectConfig(File file) |
static ProjectConfig |
ProjectConfigs.parseProjectConfig(InputStream input) |
static ProjectConfig |
ProjectConfigs.parseProjectConfig(String yaml) |
Modifier and Type | Method and Description |
---|---|
static void |
ProjectConfigs.configureProperties(ProjectConfig config,
Map map)
Configures the given
ProjectConfig with a map of key value pairs from
something like a JBoss Forge command |
static void |
ProjectConfigs.defaultEnvironments(ProjectConfig config,
String namespace)
If no environments have been configured lets default them from the `FABRIC8_DEFAULT_ENVIRONMENTS` environment variable
|
static boolean |
ProjectConfigs.saveConfig(ProjectConfig config,
File file)
Saves the configuration as YAML in the given file
|
static boolean |
ProjectConfigs.saveToFolder(File basedir,
ProjectConfig config,
boolean overwriteIfExists)
Saves the fabric8.yml file to the given project directory
|
Copyright © 2011–2016 Red Hat. All rights reserved.