Package org.apache.lenya.cms.task

Examples of org.apache.lenya.cms.task.Task


        String contextPath = map.get(Task.PARAMETER_SERVLET_CONTEXT);
        String publicationId = map.get(Task.PARAMETER_PUBLICATION_ID);
       
        Publication publication = new Publication(publicationId, contextPath);
        TaskManager manager = new TaskManager(publication.getDirectory().getAbsolutePath());
        Task task = manager.getTask(taskId);

        try {
            task.parameterize(map.getParameters());
            task.execute(contextPath);
        }
        catch (ParameterException e) {
            log.debug("Initializing task failed: ", e);
        }
        catch (ExecutionException e) {
View Full Code Here

TOP

Related Classes of org.apache.lenya.cms.task.Task

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.