Class DirectoryUtil
- java.lang.Object
-
- org.apache.sling.launchpad.base.impl.DirectoryUtil
-
public class DirectoryUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static FileFilterBUNDLE_FILE_FILTERSimple bundle file filterstatic FileFilterDIRECTORY_FILTERSimple directory filterstatic StringPATH_CONFThe path of startup bundles in the sling homestatic StringPATH_STARTUPThe path of startup bundles in the sling home
-
Constructor Summary
Constructors Constructor Description DirectoryUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 booleanisBundle(String path)Determine if a path could be a bundle based on its extension.
-
-
-
Field Detail
-
PATH_STARTUP
public static final String PATH_STARTUP
The path of startup bundles in the sling home- See Also:
- Constant Field Values
-
PATH_CONF
public static final String PATH_CONF
The path of startup bundles in the sling home- See Also:
- Constant Field Values
-
DIRECTORY_FILTER
public static final FileFilter DIRECTORY_FILTER
Simple directory filter
-
BUNDLE_FILE_FILTER
public static final FileFilter BUNDLE_FILE_FILTER
Simple bundle file filter
-
-
Method Detail
-
isBundle
public static boolean isBundle(String path)
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
-
getConfigDir
public static File getConfigDir(Map<String,String> properties)
Return the config dir.- Parameters:
properties- The properties.- Returns:
- The config dir.
-
-