All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xtext.gradle.idea.tasks.GradleExtensions Maven / Gradle / Ivy

There is a newer version: 2.0.9-alpha.3
Show newest version
package org.xtext.gradle.idea.tasks;

import groovy.lang.Closure;
import java.io.File;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.gradle.api.Project;
import org.gradle.api.file.CopySpec;
import org.gradle.api.tasks.WorkResult;

@SuppressWarnings("all")
public class GradleExtensions {
  public static WorkResult copy(final Project project, final Procedure1 copyspec) {
    return project.copy(new Closure(null) {
      @Override
      public int getMaximumNumberOfParameters() {
        return 1;
      }
      
      @Override
      public Object call(final Object argument) {
        Object _xblockexpression = null;
        {
          copyspec.apply(((CopySpec) argument));
          _xblockexpression = null;
        }
        return _xblockexpression;
      }
    });
  }
  
  public static File operator_divide(final File parent, final String child) {
    return new File(parent, child);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy