Class DirectoryUtil
java.lang.Object
org.apache.sling.launchpad.base.impl.DirectoryUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FileFilter
Simple bundle file filterstatic final FileFilter
Simple directory filterstatic final String
The path of startup bundles in the sling homestatic final String
The path of startup bundles in the sling home -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic File
getConfigDir
(Map<String, String> properties) Return the config dir.static File
getHomeDir
(Map<String, String> properties) static File
getStartupDir
(Map<String, String> properties) Return the startup dir.static boolean
Determine 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.
-