|
||||||||
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.lenya.cms.ant.PublicationTask
public abstract class PublicationTask
Abstract base class for publication-dependent Ant tasks. It requires some project parameters that are set by the AntTask.
Field Summary |
---|
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 | |
---|---|
PublicationTask()
Creates a new instance of PublicationTask |
Method Summary | |
---|---|
protected void |
assertString(java.lang.String string)
Utility method for assertion that a string is ! |
protected java.lang.String |
getContextPrefix()
Return the context prefix. |
protected Publication |
getPublication()
Get the publication |
protected java.io.File |
getPublicationDirectory()
Returns the publication directory. |
protected java.lang.String |
getPublicationId()
Returns the publication ID. |
protected java.io.File |
getServletContext()
Returns the servlet context (e.g., tomcat/webapp/lenya ) |
Methods inherited from class org.apache.tools.ant.Task |
---|
execute, 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 |
Constructor Detail |
---|
public PublicationTask()
Method Detail |
---|
protected java.io.File getPublicationDirectory()
File
protected java.lang.String getContextPrefix()
protected java.lang.String getPublicationId()
protected java.io.File getServletContext()
tomcat/webapp/lenya
)
protected Publication getPublication() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if the publication could not be foundprotected void assertString(java.lang.String string)
string
- the string to check
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |