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

org.xtext.gradle.android.XtendAndroidBuilderPlugin Maven / Gradle / Ivy

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

import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.gradle.api.Action;
import org.gradle.api.NamedDomainObjectContainer;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.plugins.ExtensionContainer;
import org.gradle.api.plugins.ObjectConfigurationAction;
import org.xtext.gradle.XtendLanguageBasePlugin;
import org.xtext.gradle.android.XtextAndroidBuilderPlugin;
import org.xtext.gradle.protocol.GradleInstallDebugInfoRequest;
import org.xtext.gradle.tasks.DebuggerConfig;
import org.xtext.gradle.tasks.Language;
import org.xtext.gradle.tasks.XtextExtension;

@SuppressWarnings("all")
public class XtendAndroidBuilderPlugin implements Plugin {
  @Override
  public void apply(final Project project) {
    final Action _function = new Action() {
      @Override
      public void execute(final ObjectConfigurationAction it) {
        it.plugin(XtextAndroidBuilderPlugin.class);
        it.plugin(XtendLanguageBasePlugin.class);
      }
    };
    project.apply(_function);
    ExtensionContainer _extensions = project.getExtensions();
    final XtextExtension xtext = _extensions.getByType(XtextExtension.class);
    NamedDomainObjectContainer _languages = xtext.getLanguages();
    Language _at = _languages.getAt("xtend");
    final Procedure1 _function_1 = new Procedure1() {
      @Override
      public void apply(final Language it) {
        DebuggerConfig _debugger = it.getDebugger();
        final Procedure1 _function = new Procedure1() {
          @Override
          public void apply(final DebuggerConfig it) {
            it.setSourceInstaller(GradleInstallDebugInfoRequest.SourceInstaller.PRIMARY);
            it.setHideSyntheticVariables(false);
          }
        };
        ObjectExtensions.operator_doubleArrow(_debugger, _function);
      }
    };
    ObjectExtensions.operator_doubleArrow(_at, _function_1);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy