Class DirectoryUtil
java.lang.Object
org.apache.sling.launchpad.base.impl.DirectoryUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FileFilterSimple bundle file filterstatic final FileFilterSimple directory filterstatic final StringThe path of startup bundles in the sling homestatic final StringThe path of startup bundles in the sling home -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilegetConfigDir(Map<String, String> properties) Return the config dir.static FilegetHomeDir(Map<String, String> properties) static FilegetStartupDir(Map<String, String> properties) Return the startup dir.static booleanDetermine if a path could be a bundle based on its extension.
-
Field Details
-
PATH_STARTUP
The path of startup bundles in the sling home- See Also:
-
PATH_CONF
The path of startup bundles in the sling home- See Also:
-
DIRECTORY_FILTER
Simple directory filter -
BUNDLE_FILE_FILTER
Simple bundle file filter
-
-
Constructor Details
-
DirectoryUtil
public DirectoryUtil()
-
-
Method Details
-
isBundle
Determine if a path could be a bundle based on its extension.- Parameters:
path- the path to the file- Returns:
- true if the path could be a bundle
-
getHomeDir
-
getConfigDir
Return the config dir.- Parameters:
properties- The properties.- Returns:
- The config dir.
-
getStartupDir
Return the startup dir.- Parameters:
properties- The properties.- Returns:
- The startup dir.
-