org.xtext.gradle.idea.tasks.GradleExtensions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtext-idea-gradle-plugin Show documentation
Show all versions of xtext-idea-gradle-plugin Show documentation
A plugin for for building IntelliJ IDEA Xtext plugins
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 super CopySpec> 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);
}
}