public class PluginFolder extends Object implements PluginFolderInterface
| Constructor and Description |
|---|
PluginFolder(String folder,
boolean pluginXmlFolder,
boolean pluginAnnotationsFolder) |
PluginFolder(String folder,
boolean pluginXmlFolder,
boolean pluginAnnotationsFolder,
boolean searchLibDir) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.vfs2.FileObject[] |
findJarFiles()
Find all the jar files in this plugin folder
|
org.apache.commons.vfs2.FileObject[] |
findJarFiles(boolean includeLibJars) |
String |
getFolder() |
boolean |
isPluginAnnotationsFolder() |
boolean |
isPluginXmlFolder() |
static List<PluginFolderInterface> |
populateFolders(String xmlSubfolder)
Create a list of plugin folders based on the specified xml sub folder
|
void |
setFolder(String folder) |
void |
setPluginAnnotationsFolder(boolean pluginAnnotationsFolder) |
void |
setPluginXmlFolder(boolean pluginXmlFolder) |
String |
toString() |
public PluginFolder(String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder)
folder - The folder locationpluginXmlFolder - set to true if the folder needs to be searched for plugin.xml appearancespluginAnnotationsFolder - set to true if the folder needs to be searched for jar files with plugin annotationspublic PluginFolder(String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder, boolean searchLibDir)
folder - The folder locationpluginXmlFolder - set to true if the folder needs to be searched for plugin.xml appearancespluginAnnotationsFolder - set to true if the folder needs to be searched for jar files with plugin annotationssearchLibDir - look inside the plugins lib dir for additional pluginspublic static List<PluginFolderInterface> populateFolders(String xmlSubfolder)
xmlSubfolder - the sub-folder to consider for XML plugin files or null if it's not applicable.public org.apache.commons.vfs2.FileObject[] findJarFiles()
throws KettleFileException
PluginFolderInterfacefindJarFiles in interface PluginFolderInterfaceKettleFileException - In case there is a problem readingpublic org.apache.commons.vfs2.FileObject[] findJarFiles(boolean includeLibJars)
throws KettleFileException
KettleFileExceptionpublic String getFolder()
getFolder in interface PluginFolderInterfacepublic void setFolder(String folder)
folder - the folder to setpublic boolean isPluginXmlFolder()
isPluginXmlFolder in interface PluginFolderInterfacepublic void setPluginXmlFolder(boolean pluginXmlFolder)
pluginXmlFolder - the pluginXmlFolder to setpublic boolean isPluginAnnotationsFolder()
isPluginAnnotationsFolder in interface PluginFolderInterfacepublic void setPluginAnnotationsFolder(boolean pluginAnnotationsFolder)
pluginAnnotationsFolder - the pluginAnnotationsFolder to set