|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
interface to externalize the project files content/models to one place, and reuse in all the queries (ILocationFinder, IPropertyResolver, etc)
| Field Summary | |
static int |
BUILD_PROPS_OFFSET
|
static int |
LOCATION_PARENT_PROJECT
Location constant, the given key is in parent's directory project.properties file. |
static int |
LOCATION_PARENT_PROJECT_BUILD
Location constant, the given key is in parent's directory build.properties file. |
static int |
LOCATION_PROJECT
Location constant, the given key is in project.properties file. |
static int |
LOCATION_PROJECT_BUILD
Location constant, the given key is in ${basedir}/build.properties file. |
static int |
LOCATION_USER_BUILD
Location constant, the given key is in ${user.home}/build.properties file. |
static int |
PROJECT_PROPS_OFFSET
|
| Method Summary | |
java.util.Set |
getBuildPropertyKeys()
all property keys defined in build.properties |
java.lang.String |
getBuildPropertyValue(java.lang.String key)
|
java.util.Set |
getParentBuildPropertyKeys()
all property keys defined in parent build.properties |
java.lang.String |
getParentBuildPropertyValue(java.lang.String key)
|
java.util.Set |
getParentProjectPropertyKeys()
all property keys defined in parent project.properties |
java.lang.String |
getParentProjectPropertyValue(java.lang.String key)
|
IProjectContext |
getPOMContext()
pom files, parsed xml elements and project instances from the pom files of this project |
java.io.File |
getProjectDirectory()
the directory where the POM is located |
java.util.Set |
getProjectPropertyKeys()
all property keys defined in project.properties |
java.lang.String |
getProjectPropertyValue(java.lang.String key)
|
java.util.Set |
getPropertyKeysAt(int location)
all property keys defined at given location.. |
java.lang.String |
getPropertyValue(java.lang.String key)
|
java.lang.String |
getPropertyValueAt(java.lang.String key,
int location)
|
IPropertyResolver |
getResolver()
the default property resolver for this instance of IQueryContext |
java.io.File |
getUserDirectory()
user directory, location of the build.properties file. |
java.util.Set |
getUserPropertyKeys()
all property keys defined in userdir/build.properties |
java.lang.String |
getUserPropertyValue(java.lang.String key)
|
| Field Detail |
public static final int LOCATION_PROJECT
public static final int LOCATION_PROJECT_BUILD
public static final int LOCATION_USER_BUILD
public static final int LOCATION_PARENT_PROJECT
public static final int LOCATION_PARENT_PROJECT_BUILD
public static final int PROJECT_PROPS_OFFSET
public static final int BUILD_PROPS_OFFSET
| Method Detail |
public java.lang.String getPropertyValue(java.lang.String key)
public java.lang.String getUserPropertyValue(java.lang.String key)
public java.lang.String getBuildPropertyValue(java.lang.String key)
public java.lang.String getProjectPropertyValue(java.lang.String key)
public java.lang.String getParentBuildPropertyValue(java.lang.String key)
public java.lang.String getParentProjectPropertyValue(java.lang.String key)
public java.lang.String getPropertyValueAt(java.lang.String key,
int location)
location - PomContext.getProjectDepth() * 10 + x,
where x is 0 for project.properties file and 1 for build.properties file.public java.util.Set getPropertyKeysAt(int location)
location - PomContext.getProjectDepth() * 10 + x,
where x is PROJECT_PROPS_OFFSET for project.properties file and BUILD_PROPS_OFFSET for build.properties file.public java.util.Set getUserPropertyKeys()
public java.util.Set getBuildPropertyKeys()
public java.util.Set getProjectPropertyKeys()
public java.util.Set getParentBuildPropertyKeys()
public java.util.Set getParentProjectPropertyKeys()
public java.io.File getProjectDirectory()
public java.io.File getUserDirectory()
public IProjectContext getPOMContext()
public IPropertyResolver getResolver()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||