public class PluginPathDiscoverySupport
extends java.lang.Object
| Constructor and Description |
|---|
PluginPathDiscoverySupport(grails.util.BuildSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
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<java.io.File> |
listJarsInPluginLibs()
Lists all the jars found inside a plugins 'lib' directory
|
java.util.List<java.io.File> |
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.
|
public PluginPathDiscoverySupport(grails.util.BuildSettings settings)
public java.util.List<java.io.File> listKnownPluginDirs()
public java.util.List<java.io.File> listJarsInPluginLibs()
public java.lang.String getPluginName(java.io.File pluginDir)
pluginDir - The directory containing the plugin.public java.io.File getPluginDescriptor(java.io.File dir)
dir - The directory to search in.null
if none can be found.