|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgrails.util.AbstractBuildSettings
public class AbstractBuildSettings
Methods optimized to Java for the BuildSettings class
Field Summary | |
---|---|
protected Map<String,Object> |
cache
Used to cache results of certain expensive operations |
protected groovy.util.ConfigObject |
config
The settings stored in the project's BuildConfig.groovy file if there is one. |
protected Map |
flatConfig
Flattened version of the ConfigObject for easy access from Java |
protected File |
globalPluginsDir
The location where global plugins are installed to. |
protected boolean |
globalPluginsDirSet
|
protected File |
projectPluginsDir
The location where project-specific plugins are installed to. |
protected boolean |
projectPluginsDirSet
|
Constructor Summary | |
---|---|
AbstractBuildSettings()
|
Method Summary | |
---|---|
void |
addPluginDirectory(File location,
boolean isInline)
Adds a plugin directory |
(package private) void |
clearCache()
Clears any locally cached values |
groovy.util.ConfigObject |
getConfig()
|
File |
getGlobalPluginsDir()
|
Collection<File> |
getImplicitPluginDirectories()
Returns a list of all plugin directories in both the given path and the global "plugins" directory together. |
Collection<File> |
getInlinePluginDirectories()
Returns an array of the inplace plugin locations. |
protected Collection<File> |
getInlinePluginsFromConfiguration(Map config)
|
Collection<String> |
getPluginBaseDirectories()
Gets a list of all the known plugin base directories (directories where plugins are installed to). |
Collection<File> |
getPluginDirectories()
Obtains a list of plugin directories for the application |
File |
getProjectPluginsDir()
|
boolean |
isInlinePluginLocation(File pluginLocation)
Returns true if the specified plugin location is an inline location. |
void |
setConfig(groovy.util.ConfigObject config)
|
void |
setGlobalPluginsDir(File globalPluginsDir)
|
void |
setProjectPluginsDir(File projectPluginsDir)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<String,Object> cache
protected groovy.util.ConfigObject config
protected File projectPluginsDir
protected File globalPluginsDir
protected boolean projectPluginsDirSet
protected boolean globalPluginsDirSet
protected Map flatConfig
Constructor Detail |
---|
public AbstractBuildSettings()
Method Detail |
---|
void clearCache()
public groovy.util.ConfigObject getConfig()
public void setConfig(groovy.util.ConfigObject config)
public File getProjectPluginsDir()
public void setProjectPluginsDir(File projectPluginsDir)
public File getGlobalPluginsDir()
public void setGlobalPluginsDir(File globalPluginsDir)
public void addPluginDirectory(File location, boolean isInline)
location
- The plugin's locatinopublic Collection<File> getPluginDirectories()
protected Collection<File> getInlinePluginsFromConfiguration(Map config)
public Collection<File> getImplicitPluginDirectories()
public Collection<String> getPluginBaseDirectories()
public boolean isInlinePluginLocation(File pluginLocation)
public Collection<File> getInlinePluginDirectories()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |