Examples of AntBuilder


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

Examples of groovy.util.AntBuilder

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

Examples of groovy.util.AntBuilder

                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

Examples of net.sourceforge.cruisecontrol.builders.AntBuilder

            registry.register(pluginElement);
        } catch (CruiseControlException e) {
            fail("Shouldn't get exception on missing classname for known plugin");
        }
       
        AntBuilder antBuilder = (AntBuilder) projectXmlHelper.configurePlugin(new Element("ant"), false);
        assertEquals(loggerClassName, antBuilder.getLoggerClassName());
    }
View Full Code Here

Examples of org.gradle.api.AntBuilder

        options.putAll(compileOptions.getDependOptions().optionMap());
        if (compileOptions.getDependOptions().isUseCache()) {
            options.put("cache", dependencyCacheDir);
        }

        final AntBuilder ant = antBuilderFactory.create();
        ant.getProject().addTaskDefinition("gradleDepend", AntDepend.class);
        ant.invokeMethod("gradleDepend", new Object[]{options.build(), new Closure<Object>(this, this) {
            @SuppressWarnings("UnusedDeclaration")
            public void doCall(Object ignore) {
                getSource().addToAntBuilder(ant, "src", FileCollection.AntType.MatchingTask);
            }
        }});
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.