org.apache.lenya.cms.publishing
Class ResourceFilePublisher
java.lang.Object
org.apache.lenya.cms.task.AbstractTask
org.apache.lenya.cms.publishing.AbstractPublisher
org.apache.lenya.cms.publishing.AbstractFilePublisher
org.apache.lenya.cms.publishing.DefaultFilePublisher
org.apache.lenya.cms.publishing.ResourceFilePublisher
- All Implemented Interfaces:
- org.apache.avalon.framework.parameters.Parameterizable, Publisher, Task
Deprecated. use the publish ant task instead.
public class ResourceFilePublisher
- extends DefaultFilePublisher
The ResourceFilePublisher
is a task that extends the
DefaultFilePublisher
. In addition to the default
publisher it also copies resource files (e.g. images) from the
authoring directory to another location, usually the live
directory.
In addition to the parameters that have to be provided for
DefaultFilePublisher
the following parameters have to
be specified:
resources-authoring-path
: the
authoring path for resources
resources-live-path
: the live path
for resources
Method Summary |
void |
execute(java.lang.String contextPath)
Deprecated. Implementation of execute (to implement the Task
interface) which also parses the parameters for resource
publishing and invokes the publish method. |
protected void |
publishResources(java.lang.String publicationPath,
java.lang.String resourcesAuthoringPath,
java.lang.String resourcesLivePath,
java.lang.String[] sources)
Deprecated. (non-Javadoc) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceFilePublisher
public ResourceFilePublisher()
- Deprecated.
publishResources
protected void publishResources(java.lang.String publicationPath,
java.lang.String resourcesAuthoringPath,
java.lang.String resourcesLivePath,
java.lang.String[] sources)
throws PublishingException
- Deprecated.
- (non-Javadoc)
- Overrides:
publishResources
in class DefaultFilePublisher
- Parameters:
publicationPath
- path to the publicationresourcesAuthoringPath
- authoring path for the resourcesresourcesLivePath
- live path for the resourcessources
- array of docIds
- Throws:
PublishingException
- if the publishing of resources fails- See Also:
DefaultFilePublisher.publishResources(java.lang.String, java.lang.String, java.lang.String, java.lang.String[])
execute
public void execute(java.lang.String contextPath)
throws ExecutionException
- Deprecated.
- Implementation of
execute
(to implement the Task
interface) which also parses the parameters for resource
publishing and invokes the publish method.
- Specified by:
execute
in interface Task
- Overrides:
execute
in class DefaultFilePublisher
- Parameters:
contextPath
- a String
value
- Throws:
ExecutionException
- if an error occurs
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.