org.sonar.server.platform
Class DefaultServerFileSystem
java.lang.Object
org.sonar.server.platform.DefaultServerFileSystem
- All Implemented Interfaces:
- ServerFileSystem, ServerComponent
public class DefaultServerFileSystem
- extends Object
- implements ServerFileSystem
Introspect the filesystem and the classloader to get extension files at startup.
- Since:
- 2.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultServerFileSystem
public DefaultServerFileSystem(DatabaseConnector databaseConnector,
Settings settings)
DefaultServerFileSystem
public DefaultServerFileSystem(DatabaseConnector databaseConnector,
File homeDir,
File deployDir)
- for unit tests
start
public void start()
getHomeDir
public File getHomeDir()
- Specified by:
getHomeDir
in interface ServerFileSystem
getDeployDir
public File getDeployDir()
getDeployedJdbcDriver
public File getDeployedJdbcDriver()
getDeployedPluginsDir
public File getDeployedPluginsDir()
getDownloadedPluginsDir
public File getDownloadedPluginsDir()
getRemovedPluginsDir
public File getRemovedPluginsDir()
getJdbcDriver
public File getJdbcDriver()
getCorePlugins
public List<File> getCorePlugins()
getUserPlugins
public List<File> getUserPlugins()
getUserPluginsDir
public File getUserPluginsDir()
getDeprecatedPluginsDir
public File getDeprecatedPluginsDir()
getPluginExtensions
public List<File> getPluginExtensions()
getPluginExtensionsDir
public File getPluginExtensionsDir()
getPluginIndex
public File getPluginIndex()
getExtensions
public List<File> getExtensions(String dirName,
String... suffixes)
- Specified by:
getExtensions
in interface ServerFileSystem
suffixes
- the file suffixes. If null, then return all the files, whatever their suffix
getPluginExtensionsDir
public File getPluginExtensionsDir(String pluginKey)
getPluginExtensionXml
public List<File> getPluginExtensionXml(String pluginKey)
getMaven2Plugin
public File getMaven2Plugin()
Copyright © 2009-2012 SonarSource. All Rights Reserved.