lenya/src/java/org/apache/lenya/cms/ant TreePublisher.java,NONE,1.1

Edith Chevrier <[email protected]>
Newsgroups gmane.comp.cms.wyona.cvs
Message-ID <[email protected]>
Update of /repository/lenya/src/java/org/apache/lenya/cms/ant
In directory erbium:/tmp/cvs-serv18105/src/java/org/apache/lenya/cms/ant

Added Files:
	TreePublisher.java 
Log Message:
Publisher for default with Anttask: work in progress

--- NEW FILE: TreePublisher.java ---
/*
 * TreePublisher.java
 *
 * Created on 7. Mai 2003, 18:00
 */

package org.apache.lenya.cms.ant;

import org.apache.lenya.cms.publishing.PublishingException;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;

/**
 *
 * @author  edith
 */
public class TreePublisher
    extends PublicationTask {
    
    /** Creates a new instance of TreePublisher */
    public TreePublisher() {
    }
    
    private String absoluteTreeLivePath;

    protected String getAbsoluteTreeLivePath() {
        return absoluteTreeLivePath;
    }
    
    public void setAbsoluteTreeLivePath(String absoluteTreeLivePath) {
        this.absoluteTreeLivePath = absoluteTreeLivePath;
    }
    
    private String absoluteTreeAuthoringPath;
    
    protected String getAbsoluteTreeAuthoringPath() {
        return absoluteTreeAuthoringPath;
    }
    
    protected void setAbsoluteTreeAuthoringPath() {
        this.absoluteTreeAuthoringPath = absoluteTreeAuthoringPath;
    }
    
    public void publish(String absoluteTreeAuthoringPath, String absoluteTreeLivePath)
        throws PublishingException {
    }
    
    public void execute()
        throws BuildException {
            
        try {
            log("Absolute Tree Authoring Path: " + getAbsoluteTreeAuthoringPath());
            log("Absolute Tree Live Path: " + getAbsoluteTreeLivePath());

            publish (
                getAbsoluteTreeAuthoringPath(),
                getAbsoluteTreeLivePath());
        } catch (Exception e) {
            throw new BuildException(e);
        }
    }

}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.