Package org.apache.lenya.cms.task

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


        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);
        }
View Full Code Here


                = getClass().getClassLoader().getResource("org/apache/lenya/cms/task/test-tasks.xconf");
            DefaultConfigurationBuilder configurationBuilder = new DefaultConfigurationBuilder();
            Configuration configuration
                = configurationBuilder.build(tasksConfigurationResource.toString());
            
            TaskManager manager = new TaskManager();
            manager.configure(configuration);
            AntTask task = (AntTask) manager.getTask(taskId);
           
            Parameters parameters = new Parameters();
           
            URL buildfileResource
                = getClass().getClassLoader().getResource("org/apache/lenya/cms/task/tasks.xml");
View Full Code Here

TOP

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

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.