Package org.gradle.api

Examples of org.gradle.api.Action


            remap.setInJar(processed);
            remap.dependsOn(patch);
        }
       
        // configure eclipse task to do extra stuff.
        project.getTasks().getByName("eclipse").doLast(new Action() {

            @Override
            public void execute(Object arg0)
            {
                File f = new File(ECLIPSE_LOCATION);
View Full Code Here


            // make sure it happens sometime during the build.
            project.getTasks().getByName("setupCIWorkspace").dependsOn(task);
            project.getTasks().getByName("setupDevWorkspace").dependsOn(task);
            project.getTasks().getByName("setupDecompWorkspace").dependsOn(task);
           
            task.doLast(new Action() {

                @Override
                public void execute(Object arg0)
                {
                    EtagDownloadTask task = (EtagDownloadTask) arg0;
                    try
                    {
                        readJsonDep(task.getFile());
                    }
                    catch (IOException e)
                    {
                        Throwables.propagate(e);
                    }
                }

            });
        }

        project.afterEvaluate(new Action() {

            @Override
            public void execute(Object arg0)
            {
                if (json.call().exists())
View Full Code Here

        }

        configurePackaging();

        // ensure we get basic things from the other extension
        project.afterEvaluate(new Action() {

            @Override
            public void execute(Object arg0)
            {
                getOverlayExtension().copyFrom(otherPlugin.getExtension());
View Full Code Here

  public void apply(final Project project) {
    // todo : ideally the registry would be handled by a convention to allow configuration (aka, adding more providers)...
    //    for our purposes here in Hibernate we only care about the Maven settings.xml based way so we
    //    code for just that.
    final AuthenticationProviderRegistry registry = new AuthenticationProviderRegistry();
    final Action authenticationHandler = new AuthenticationHandler( registry );

    project.getTasks().withType( Upload.class ).all(
      new Action<Upload>() {
        @Override
        @SuppressWarnings( {"unchecked"})
View Full Code Here

TOP

Related Classes of org.gradle.api.Action

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.