Package org.apache.lenya.cms.task

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


            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");
            File buildfile = new File(new URI(buildfileResource.toString()));
            parameters.setParameter(AntTask.BUILDFILE, buildfile.getAbsolutePath());
            task.parameterize(parameters);
           
            String servletContextPath = task.getParameters().getParameter(Task.PARAMETER_SERVLET_CONTEXT);
            task.execute(servletContextPath);
            
        } catch (Exception e) {
            e.printStackTrace(System.err);
        }
    }
View Full Code Here

TOP

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

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.