|
||||||||
| 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.StaticHTMLExporter
public class StaticHTMLExporter
Ant task that exports a set of HTML URIs as static HTML files.
| 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 | |
|---|---|
StaticHTMLExporter()
Creates a new instance of StaticHTMLExporter |
|
| Method Summary | |
|---|---|
void |
execute()
Executes the task. |
void |
export(java.net.URL serverURI,
java.io.File publicationDirectory,
java.lang.String exportPath,
java.lang.String[] uris,
java.lang.String substituteExpression,
java.lang.String substituteReplacement)
Exports a set of URIs as a HTML file. |
protected java.lang.String |
getExpression()
Returns the expression in the URI to be replaced. |
protected java.lang.String |
getPath()
Returns the path to the exported files. |
protected java.lang.String |
getReplacement()
Returns the string in the URI that replaces the expression. |
protected java.net.URL |
getServer()
Returns the server URL. |
protected java.lang.String[] |
getUris()
Returns the URIs to export. |
void |
setExpression(java.lang.String expression)
Sets the expression in the URI to be replaced. |
void |
setPath(java.lang.String path)
Sets the path to the exported files. |
void |
setReplacement(java.lang.String replacement)
Sets the string in the URI that replaces the expression. |
void |
setServer(java.lang.String serverURL)
Sets the server URL. |
void |
setUris(java.lang.String uris)
Sets the URIs to export. |
| 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 StaticHTMLExporter()
| Method Detail |
|---|
protected java.net.URL getServer()
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic void setServer(java.lang.String serverURL)
protected java.lang.String getPath()
public void setPath(java.lang.String path)
protected java.lang.String[] getUris()
public void setUris(java.lang.String uris)
protected java.lang.String getExpression()
public void setExpression(java.lang.String expression)
protected java.lang.String getReplacement()
public void setReplacement(java.lang.String replacement)
public void export(java.net.URL serverURI,
java.io.File publicationDirectory,
java.lang.String exportPath,
java.lang.String[] uris,
java.lang.String substituteExpression,
java.lang.String substituteReplacement)
throws ExportException
serverURI - The server to download the file from.publicationDirectory - The directory of the publication.exportPath - The path to export the files to (relative to publicationDirectory).uris - The URIs to export (relative to the publication URI).substituteExpression - A part of the complete URIs to be substituted.substituteReplacement - A string to replace substituteExpression.
ExportException
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||