|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.avalon.tools.model.Context
A context contains infomation about a particular project build environment including the mapping of inital structure to the immutable magic structure.
Field Summary | |
static String |
BUILD
The value of the immutable target build directory name. |
static String |
CLASSES
The value of the immutable target classes directory name. |
static String |
DELIVERABLES
The value of the immutable target deliverables directory name. |
static String |
DOCS
The value of the immutable target docs directory name. |
static String |
ETC_KEY
The value of the immutable project.etc key. |
static String |
ETC_VALUE
The value of the default project.etc default value. |
static String |
KEY
The reference name of the context object withing the current ant project. |
static String |
PROJECT_KEY
The property name of the project key. |
static String |
SRC_CONFIG
The value of the default project.src.cofig property value. |
static String |
SRC_CONFIG_KEY
The value of the immutable project.src.config key. |
static String |
SRC_KEY
The value of the immutable project.src property key. |
static String |
SRC_MAIN
The value of the default project.src.main property value. |
static String |
SRC_MAIN_KEY
The value of the immutable project.src.main key. |
static String |
SRC_TEST
The value of the default project.src.test property value. |
static String |
SRC_TEST_KEY
|
static String |
SRC_VALUE
The value of the default project.src property value. |
static String |
TARGET
The value of the immutable target directory name. |
static String |
TEMP
The value of the immutable target temp directory name. |
static String |
TEST
The value of the immutable target test directory name. |
static String |
TEST_CLASSES
The value of the immutable target test classes directory name. |
static String |
TEST_REPORTS
The value of the immutable target test reports directory name. |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
Context()
|
Method Summary | |
void |
execute()
Creation of the context and association ofnthe context under the KEY key. |
File |
getBuildDirectory()
Reuturn the project target build directory. |
File |
getBuildPath(String key)
Return a build path matching a supplied key. |
static File |
getCanonicalFile(File file)
Return the concatonal variant of a file. |
static File |
getCanonicalFile(File file,
boolean create)
Return the concatonal variant of a file and ensure that the parent directory path is created. |
static String |
getCanonicalPath(File file)
Return the concatonal path of a file. |
File |
getClassesDirectory()
Reuturn the project classes directory. |
static Context |
getContext(org.apache.tools.ant.Project project)
Reuturn the context object for the project. |
File |
getDeliverablesDirectory()
Reuturn the project deliverables directory. |
File |
getDocsDirectory()
Reuturn the project docs directory. |
File |
getEtcDirectory()
Reuturn the project etc directory. |
static File |
getFile(File root,
String path)
Return a file using a supplied root and path. |
static File |
getFile(File root,
String path,
boolean create)
Return a file using a supplied root and path. |
String |
getKey()
Return the unique key for this project. |
static String |
getSignature()
Return the UTC YYMMDD.HHMMSSS signature. |
static String |
getSignature(Date date)
Return the UTC YYMMDD.HHMMSSS signature of a date. |
File |
getSrcDirectory()
Reuturn the project src directory. |
File |
getTargetDirectory()
Reuturn the project target directory. |
File |
getTempDirectory()
Reuturn the project temp directory. |
File |
getTestClassesDirectory()
Reuturn the project test classes directory. |
File |
getTestDirectory()
Reuturn the project test directory. |
File |
getTestReportsDirectory()
Reuturn the project test reports directory. |
File |
setBuildPath(String path)
Reserve a path under the target directory. |
File |
setBuildPath(String key,
String path)
Reserve a path under the target directory. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String KEY
public static final String PROJECT_KEY
public static final String TARGET
public static final String BUILD
public static final String CLASSES
public static final String DELIVERABLES
public static final String TEST_CLASSES
public static final String TEST_REPORTS
public static final String TEMP
public static final String TEST
public static final String DOCS
public static final String SRC_KEY
public static final String SRC_VALUE
public static final String SRC_MAIN
public static final String SRC_MAIN_KEY
public static final String SRC_CONFIG_KEY
public static final String SRC_CONFIG
public static final String SRC_TEST_KEY
public static final String SRC_TEST
public static final String ETC_KEY
public static final String ETC_VALUE
Constructor Detail |
public Context()
Method Detail |
public static Context getContext(org.apache.tools.ant.Project project)
project
- the current project
public static File getFile(File root, String path)
root
- the root directorypath
- the absolute or relative file path
public static File getFile(File root, String path, boolean create)
root
- the root directorypath
- the absolute or relative file pathcreate
- flag to indicate creation policy if the file does not exists
public static File getCanonicalFile(File file) throws org.apache.tools.ant.BuildException
file
- the file argument
org.apache.tools.ant.BuildException
public static File getCanonicalFile(File file, boolean create) throws org.apache.tools.ant.BuildException
file
- the file argument
org.apache.tools.ant.BuildException
public static String getCanonicalPath(File file) throws org.apache.tools.ant.BuildException
file
- the file argument
org.apache.tools.ant.BuildException
public static String getSignature()
public static String getSignature(Date date)
date
- the date
public void execute()
public String getKey()
public File getSrcDirectory()
public File getEtcDirectory()
public File getTargetDirectory()
public File getBuildDirectory()
public File getDeliverablesDirectory()
public File getClassesDirectory()
public File getTestClassesDirectory()
public File getTestReportsDirectory()
public File getTempDirectory()
public File getTestDirectory()
public File getDocsDirectory()
public File setBuildPath(String path)
path
- the path to reservepublic File setBuildPath(String key, String path)
key
- the logic path identifierpath
- the path to reservepublic File getBuildPath(String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |