| 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.lenya.cms.ant.PublicationTask
org.apache.lenya.cms.ant.DocumentIdToPath
public class DocumentIdToPath
Ant task to get the directory path of the xml files of a document with document id. The path is given from the {area} directory.
| 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 | |
|---|---|
DocumentIdToPath()
Creates a new instance of DocumentIdToPath  | 
|
| Method Summary | |
|---|---|
 void | 
compute(java.lang.String area,
        java.lang.String documentid,
        java.lang.String propertyname)
Gets the directory path from the document id and sets this value in the property of the project with the name propertyname.  | 
 void | 
execute()
 | 
 java.lang.String | 
getArea()
 | 
protected  java.lang.String | 
getDocumentid()
 | 
 java.lang.String | 
getPropertyname()
 | 
 void | 
setArea(java.lang.String string)
 | 
 void | 
setDocumentid(java.lang.String string)
Set the value of the document id.  | 
 void | 
setPropertyname(java.lang.String string)
 | 
| 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 DocumentIdToPath()
| Method Detail | 
|---|
public java.lang.String getArea()
protected java.lang.String getDocumentid()
public java.lang.String getPropertyname()
public void setArea(java.lang.String string)
string - The area.public void setPropertyname(java.lang.String string)
string - The name of the property.public void setDocumentid(java.lang.String string)
string - The document id.
public void compute(java.lang.String area,
                    java.lang.String documentid,
                    java.lang.String propertyname)
area - The area (ex authoring)documentid - The document id.propertyname - The name of the property
public void execute()
             throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.execute()
  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||