org.wisepersist.gradle.plugins.gwt.GwtJsInteropExportsOptions Maven / Gradle / Ivy
package org.wisepersist.gradle.plugins.gwt;
import java.util.List;
/**
* Defines the options known by the {@link AbstractGwtActionTask} task.
*/
public interface GwtJsInteropExportsOptions {
boolean shouldGenerate();
/**
* Sets the "-generateJsInteropExport" flag that enables the generation of JsInterop exports, disabled by default.
*
* @param shouldGenerate {@code true} if the "-generateJsInteropExport" flag should be set, {@code false} otherwise to set "-nogenerateJsInteropExports" flag
*
* @since GWT 2.8.0
*/
void setGenerate(final boolean shouldGenerate);
List getIncludePatterns();
/**
* Sets the members and classes to include while generating JsInterop exports. Has only effect if {@linkplain #shouldGenerate() exporting} is enabled.
*
* @param includePatterns the members and classes to include - adds multiple "-includeJsInteropExports com.foo.*" flags
*
* @since GWT 2.8.1
*/
void setIncludePatterns(final String... includePatterns);
List getExcludePatterns();
/**
* Sets the members and classes to exclude while generating JsInterop exports. Has only effect if {@linkplain #shouldGenerate() exporting} is enabled and {@linkplain #getIncludePatterns()} is not empty.
*
* @param excludePatterns the members and classes to exclude - adds multiple "-excludeJsInteropExports com.foo.internal.*" flags
*
* @since GWT 2.8.1
*/
void setExcludePatterns(final String... excludePatterns);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy