|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.cli.support.PluginPathDiscoverySupport
public class PluginPathDiscoverySupport extends java.lang.Object
Utility methods for plugin discovery when running the Grails command line.
Constructor Summary | |
PluginPathDiscoverySupport(BuildSettings settings)
|
Method Summary | |
---|---|
java.io.File
|
getPluginDescriptor(java.io.File dir)
Retrieves the first plugin descriptor it finds in the given directory. |
java.lang.String
|
getPluginName(java.io.File pluginDir)
Gets the name of a plugin based on its directory. |
java.util.List
|
listJarsInPluginLibs()
Lists all the jars found inside a plugins 'lib' directory |
java.util.List
|
listKnownPluginDirs()
List all plugin directories that we know about: those in the project's "plugins" directory, those in the global "plugins" dir, and those declared explicitly in the build config. |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public PluginPathDiscoverySupport(BuildSettings settings)
Method Detail |
---|
public java.io.File getPluginDescriptor(java.io.File dir)
dir
- The directory to search in.null
if none can be found.
public java.lang.String getPluginName(java.io.File pluginDir)
pluginDir
- The directory containing the plugin.
public java.util.List listJarsInPluginLibs()
public java.util.List listKnownPluginDirs()
Groovy Documentation