| java.lang.Object org.apache.lenya.cms.task.AbstractTask org.apache.lenya.cms.task.AntTask
AntTask | public class AntTask extends AbstractTask (Code) | | An object of this class is used to execute Ant tasks. The task parameters are:
publication-id : the publication ID
buildfile (optional) : the location of the build file
relative to the publication directory. If this parameter is not provided, the file is loaded from
AntTask.DEFAULT_BUILDFILE .
target (optional) : the build target. If this parameter is
not provided, the default target is executed.
ant.* : the command-line parameters for Ant (not
implemented yet!)
properties.* : the project properties
|
ANT_PREFIX | final public static String ANT_PREFIX(Code) | | ANT_PREFIX The ant prefix
|
BUILDFILE | final public static String BUILDFILE(Code) | | BUILDFILE The build file
|
CONTEXT_PREFIX | final public static String CONTEXT_PREFIX(Code) | | CONTEXT_PREFIX The context prefix
|
DEFAULT_BUILDFILE | final public static String DEFAULT_BUILDFILE(Code) | | DEFAULT_BUILDFILE The default build file
|
LOG_PATH | final public static String LOG_PATH(Code) | | LOG_PATH The log path
|
PARAMETER_LOGFILE | final public static String PARAMETER_LOGFILE(Code) | | PARAMETER_LOGFILE The log file parameter
|
PROPERTIES_PREFIX | final public static String PROPERTIES_PREFIX(Code) | | PROPERTIES_PREFIX The properties prefix
|
PUBLICATION_DIRECTORY | final public static String PUBLICATION_DIRECTORY(Code) | | PUBLICATION_DIRECTORY The publication directory
|
PUBLICATION_ID | final public static String PUBLICATION_ID(Code) | | PUBLICATION_ID The publication id
|
SERVLET_CONTEXT_PATH | final public static String SERVLET_CONTEXT_PATH(Code) | | SERVLET_CONTEXT_PATH The servlet context path
|
TARGET | final public static String TARGET(Code) | | TARGET The target
|
dateFormat | final public static DateFormat dateFormat(Code) | | dateFormat The date format
|
execute | public void execute(String servletContextPath) throws ExecutionException(Code) | | Execute the task. All parameters must have been set with parameterize().
Parameters: servletContextPath - The servlet context path. throws: ExecutionException - when the execution of the task failed. |
executeAntTarget | public void executeAntTarget(String servletContextPath, String contextPrefix, String publicationId, File publicationDirectory, File buildFile, String target, Map arguments, Map properties, File logFile) throws ExecutionException(Code) | | Executes an Ant target.
Parameters: buildFile - The build XML file. Parameters: target - The name of the target to execute. Parameters: arguments - A map mapping the command-line arguments to their values. Parameters: properties - A map mapping the project properties to their values. Parameters: servletContextPath - The context-path of the servlet Parameters: contextPrefix - The context-prefix of the servlet Parameters: publicationId - The publication-id Parameters: publicationDirectory - The directory of the publication Parameters: logFile - The file where the log should go to throws: ExecutionException - if the execution failed |
getDefaultLogFile | protected File getDefaultLogFile(File publicationDirectory)(Code) | | Returns the filename of the logfile to write.
Parameters: publicationDirectory - for which publication the filename of the logfile is requested the file path for the log file |
|
|