public class JPFSiteUtils
extends java.lang.Object
Constructor and Description |
---|
JPFSiteUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addProject(java.io.File siteProps,
java.lang.String projectId,
java.io.File projectDir,
boolean isExt) |
static java.io.File |
getCoreDir(java.io.File siteProps) |
static java.lang.String |
getCurrentProjectId()
look for a "
|
static java.io.File |
getCurrentProjectProperties()
find project properties (jpf.properties) from current dir
|
static java.util.List<java.lang.String> |
getExtensions(java.util.List<Pair<java.lang.String,java.lang.String>> entries)
this returns a list of all the project ids in the 'extensions' entries (also
handles accumulated 'extensions+=.." entries
|
static java.lang.String |
getGlobalSitePropertiesPath() |
static java.lang.String |
getMatchFromFile(java.lang.String pathName,
java.lang.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 java.util.List<Pair<java.lang.String,java.lang.String>> |
getRawEntries(java.io.File siteProps) |
static java.util.List<Pair<java.lang.String,java.lang.String>> |
getRawEntries(java.io.Reader reader)
this returns the contents of a config source in-order, without expanding values or keys
|
static java.io.File |
getSiteCoreDir()
get location of jpf-core from site.properties
|
static java.io.File |
getSiteCoreDir(java.lang.String[] args) |
static java.io.File |
getSiteProperties(java.lang.String[] args) |
static java.io.File |
getStandardSiteProperties()
locate the site.properties.
|
static boolean |
isFreeArg(java.lang.String a) |
public static java.lang.String getMatchFromFile(java.lang.String pathName, java.lang.String lookupKey)
public static java.util.List<Pair<java.lang.String,java.lang.String>> getRawEntries(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public static java.io.File getCoreDir(java.io.File siteProps)
public static java.io.File getSiteCoreDir(java.lang.String[] args)
public static java.io.File getSiteCoreDir()
public static java.io.File getCurrentProjectProperties()
public static java.lang.String getCurrentProjectId()
public static boolean isFreeArg(java.lang.String a)
public static java.io.File getSiteProperties(java.lang.String[] args)
public static java.io.File getStandardSiteProperties()
public static java.lang.String getGlobalSitePropertiesPath()
public static java.util.List<Pair<java.lang.String,java.lang.String>> getRawEntries(java.io.File siteProps)
public static java.util.List<java.lang.String> getExtensions(java.util.List<Pair<java.lang.String,java.lang.String>> entries)
public static boolean addProject(java.io.File siteProps, java.lang.String projectId, java.io.File projectDir, boolean isExt)