|
||||||||
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 org.apache.lenya.cms.ant.LinkRewriteTask
public class LinkRewriteTask
This task is used to rewrite internal links after a cut'n'paste operation, i.e. after a document has changed its document-id. It finds all relevant documents which have a link to the document that changed its document-id and changes this link with the help of an xslt.
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 | |
---|---|
LinkRewriteTask()
|
Method Summary | |
---|---|
void |
execute()
|
java.lang.String |
getArea()
Get the area |
java.lang.String |
getNewDocumentId()
Get the new document-id. |
java.lang.String |
getOldDocumentId()
Get the old document-id. |
void |
setArea(java.lang.String _area)
Set the area |
void |
setBaseDir(java.lang.String _baseDir)
Set the base dir where in which the link rewrite will take place. |
void |
setNewDocumentId(java.lang.String _newDocumentId)
Set the new document-id. |
void |
setOldDocumentId(java.lang.String _oldDocumentId)
Set the old document-id. |
void |
setStylesheet(java.lang.String _stylesheet)
Set the stylesheet. |
Methods inherited from class org.apache.lenya.cms.ant.PublicationTask |
---|
assertString, getContextPrefix, getPublication, getPublicationDirectory, getPublicationId, getServletContext |
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 |
Constructor Detail |
---|
public LinkRewriteTask()
Method Detail |
---|
public java.lang.String getArea()
public void setArea(java.lang.String _area)
_area
- the areapublic java.lang.String getNewDocumentId()
public void setNewDocumentId(java.lang.String _newDocumentId)
_newDocumentId
- the new document-idpublic java.lang.String getOldDocumentId()
public void setOldDocumentId(java.lang.String _oldDocumentId)
_oldDocumentId
- the old document-idpublic void setStylesheet(java.lang.String _stylesheet)
_stylesheet
- the stylesheet that transforms the linkspublic void setBaseDir(java.lang.String _baseDir)
_baseDir
- the base dirpublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Task.execute()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |