org.apache.lenya.cms.publishing
Class ResourceFilePublisher

java.lang.Object
  extended by org.apache.lenya.cms.task.AbstractTask
      extended by org.apache.lenya.cms.publishing.AbstractPublisher
          extended by org.apache.lenya.cms.publishing.AbstractFilePublisher
              extended by org.apache.lenya.cms.publishing.DefaultFilePublisher
                  extended by 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


Field Summary
 
Fields inherited from class org.apache.lenya.cms.publishing.DefaultFilePublisher
PARAMETER_SOURCES
 
Fields inherited from interface org.apache.lenya.cms.task.Task
DEFAULT_PREFIX, FAILURE, NAMESPACE, PARAMETER_CONTEXT_PREFIX, PARAMETER_PUBLICATION_ID, PARAMETER_SERVER_PORT, PARAMETER_SERVER_URI, PARAMETER_SERVLET_CONTEXT, SUCCESS
 
Constructor Summary
ResourceFilePublisher()
          Deprecated.  
 
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 org.apache.lenya.cms.publishing.DefaultFilePublisher
publish
 
Methods inherited from class org.apache.lenya.cms.publishing.AbstractFilePublisher
copyFile
 
Methods inherited from class org.apache.lenya.cms.task.AbstractTask
getParameters, getResult, parameterize, setLabel, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFilePublisher

public ResourceFilePublisher()
Deprecated. 
Method Detail

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 publication
resourcesAuthoringPath - authoring path for the resources
resourcesLivePath - live path for the resources
sources - 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.