Package groovy.util

Examples of groovy.util.AntBuilder


        final Groovy groovy = new Groovy();
        for (int i = 1; i < args.length; i++) {
            final Commandline.Argument argument = groovy.createArg();
            argument.setValue(args[i]);
        }
        final AntBuilder builder = new AntBuilder();
        groovy.setProject(builder.getProject());
        groovy.parseAndRunScript(shell, null, null, null, new File(args[0]), builder);
    }
View Full Code Here


public class AntUtil {

    public static AntBuilder builder() {
        if (ant == null) {
            ant = new AntBuilder();

            //removing all registered build listeners, including default (that writes to console)
            for (BuildListener listener : ant.getProject().getBuildListeners()) {
                ant.getProject().removeBuildListener(listener);
            }
View Full Code Here

                script = shell.parse(scriptFile);
            } else {
                script = shell.parse(txt, scriptName);
            }
            final Project project = task.getProject();
            script.setProperty("ant", new AntBuilder(task));
            script.setProperty("project", project);
            script.setProperty("build", task.getBuild());
            script.setProperty("properties", new AntProjectPropertiesDelegate(project));
            script.setProperty("target", task.getOwningTarget());
            script.setProperty("task", this);
View Full Code Here

TOP

Related Classes of groovy.util.AntBuilder

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.