org.apache.sling.launchpad.base.impl
Class DirectoryUtil

java.lang.Object
  extended by org.apache.sling.launchpad.base.impl.DirectoryUtil

public class DirectoryUtil
extends Object


Field Summary
static FileFilter BUNDLE_FILE_FILTER
          Simple bundle file filter
static FileFilter DIRECTORY_FILTER
          Simple directory filter
static String PATH_CONF
          The path of startup bundles in the sling home
static String PATH_STARTUP
          The path of startup bundles in the sling home
 
Constructor Summary
DirectoryUtil()
           
 
Method Summary
static 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 isBundle(String path)
          Determine if a path could be a bundle based on its extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Constructor Detail

DirectoryUtil

public DirectoryUtil()
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

getHomeDir

public static File getHomeDir(Map<String,String> properties)

getConfigDir

public static File getConfigDir(Map<String,String> properties)
Return the config dir.


getStartupDir

public static File getStartupDir(Map<String,String> properties)
Return the startup dir.



Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.