org.codehaus.groovy.grails.plugins
Class GrailsPluginUtils
java.lang.Object
org.codehaus.groovy.grails.plugins.GrailsPluginUtils
- All Implemented Interfaces:
- groovy.lang.GroovyObject
public class GrailsPluginUtils
- extends Object
- implements groovy.lang.GroovyObject
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GRAILS_HOME
public static Object GRAILS_HOME
GrailsPluginUtils
public GrailsPluginUtils()
getWILDCARD
public static String getWILDCARD()
getPluginName
public static String getPluginName(Class clazz)
getPluginVersion
public static String getPluginVersion(Class clazz)
isValidVersion
public static boolean isValidVersion(String pluginVersion,
String requiredVersion)
getUpperVersion
public static String getUpperVersion(String pluginVersion)
getLowerVersion
public static String getLowerVersion(String pluginVersion)
supportsAtLeastVersion
public static boolean supportsAtLeastVersion(String pluginVersion,
String requiredVersion)
newPluginBuildSettings
public static PluginBuildSettings newPluginBuildSettings()
getPluginBuildSettings
public static PluginBuildSettings getPluginBuildSettings()
setPluginBuildSettings
public static Object setPluginBuildSettings(PluginBuildSettings settings)
getPluginInfos
public static PluginInfo[] getPluginInfos(String pluginDirPath)
getSupportedPluginInfos
public static PluginInfo[] getSupportedPluginInfos(String pluginDirPath)
getPluginBaseDirectories
public static List<String> getPluginBaseDirectories(String pluginDirPath)
getPluginBaseDirectories
public static List<String> getPluginBaseDirectories()
getPluginDirectories
public static Resource[] getPluginDirectories()
getPluginDirectories
public static Resource[] getPluginDirectories(String pluginDirPath)
getImplicitPluginDirectories
public static List<Resource> getImplicitPluginDirectories(String pluginDirPath)
isGlobalPluginLocation
public static boolean isGlobalPluginLocation(Resource pluginDir)
getArtefactResources
public static Resource[] getArtefactResources(String basedir)
getArtefactResourcesForOne
public static Resource[] getArtefactResourcesForOne(String projectDir)
getPluginXmlMetadata
public static Resource[] getPluginXmlMetadata(String pluginsDirPath)
getAvailableScripts
public static Resource[] getAvailableScripts(String grailsHome,
String pluginDirPath,
String basedir)
getPluginScripts
public static Resource[] getPluginScripts(String pluginDirPath)
getPluginResourceBundles
public static Resource[] getPluginResourceBundles(String pluginDirPath)
getPluginSourceFiles
public static Resource[] getPluginSourceFiles(String pluginsDirPath)
getPluginJarFiles
public static Resource[] getPluginJarFiles(String pluginsDirPath)
getPluginDescriptors
public static Resource[] getPluginDescriptors(String basedir,
String pluginsDirPath)
getBasePluginDescriptor
public static Resource getBasePluginDescriptor(String basedir)
getDescriptorForPlugin
public static Resource getDescriptorForPlugin(Resource pluginDir)
getPluginLibDirectories
public static Resource[] getPluginLibDirectories(String pluginsDirPath)
getPluginI18nDirectories
public static Resource[] getPluginI18nDirectories(String pluginsDirPath)
getGlobalPluginsPath
public static String getGlobalPluginsPath()
getPluginDirForName
public static Resource getPluginDirForName(String pluginName)
getMetadataForPlugin
public static groovy.util.slurpersupport.GPathResult getMetadataForPlugin(String pluginName)
getMetadataForPlugin
public static groovy.util.slurpersupport.GPathResult getMetadataForPlugin(Resource pluginDir)
getPluginDirForName
public static Resource getPluginDirForName(String pluginsDirPath,
String pluginName)
clearCaches
public static Object clearCaches()
getPluginInfos
public static PluginInfo[] getPluginInfos()
getSupportedPluginInfos
public static PluginInfo[] getSupportedPluginInfos()
getImplicitPluginDirectories
public static List<Resource> getImplicitPluginDirectories()
getPluginI18nDirectories
public static Resource[] getPluginI18nDirectories()
$getStaticMetaClass
protected groovy.lang.MetaClass $getStaticMetaClass()
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interface groovy.lang.GroovyObject
invokeMethod
public Object invokeMethod(String method,
Object arguments)
- Specified by:
invokeMethod
in interface groovy.lang.GroovyObject
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interface groovy.lang.GroovyObject
setProperty
public void setProperty(String property,
Object value)
- Specified by:
setProperty
in interface groovy.lang.GroovyObject
Copyright (c) 2005-2009 The Grails project