public class JPFSiteUtils extends Object
Constructor and Description |
---|
JPFSiteUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addProject(File siteProps,
String projectId,
File projectDir,
boolean isExt) |
static File |
getCoreDir(File siteProps) |
static String |
getCurrentProjectId()
look for a "
|
static File |
getCurrentProjectProperties()
find project properties (jpf.properties) from current dir
|
static List<String> |
getExtensions(List<Pair<String,String>> entries)
this returns a list of all the project ids in the 'extensions' entries (also
handles accumulated 'extensions+=.." entries
|
static String |
getGlobalSitePropertiesPath() |
static String |
getMatchFromFile(String pathName,
String lookupKey)
minimal parsing - only local key, system property and and config_path expansion
NOTE this stops after finding the key, and it doesn't add the file to the 'sources'
|
static List<Pair<String,String>> |
getRawEntries(File siteProps) |
static List<Pair<String,String>> |
getRawEntries(Reader reader)
this returns the contents of a config source in-order, without expanding values or keys
|
static File |
getSiteCoreDir()
get location of jpf-core from site.properties
|
static File |
getSiteCoreDir(String[] args) |
static File |
getSiteProperties(String[] args) |
static File |
getStandardSiteProperties()
locate the site.properties.
|
static boolean |
isFreeArg(String a) |
public static String getMatchFromFile(String pathName, String lookupKey)
public static List<Pair<String,String>> getRawEntries(Reader reader) throws IOException
IOException
public static File getSiteCoreDir()
public static File getCurrentProjectProperties()
public static String getCurrentProjectId()
public static boolean isFreeArg(String a)
public static File getStandardSiteProperties()
public static String getGlobalSitePropertiesPath()
public static List<String> getExtensions(List<Pair<String,String>> entries)