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

org.wisepersist.gradle.plugins.gwt.GwtSuperDevOptions Maven / Gradle / Ivy

There is a newer version: 1.1.19
Show newest version
/**
 * Copyright (C) 2013-2017 Steffen Schaefer
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.wisepersist.gradle.plugins.gwt;

import java.io.File;

/**
 * Defines the options known by the {@link GwtSuperDev} task.
 */
public interface GwtSuperDevOptions {

	/**
	 * @see #setWorkDir(File)
	 * 
	 * @return the workDir
	 */
	File getWorkDir();

	/**
	 * Sets the "-workDir" option that specifies the directory where the Super Dev Mode outputs its
	 * generated files.
	 * 
	 * @param workDir
	 *            the workDir to set
	 */
	void setWorkDir(File workDir);

	String getBindAddress();

	/**
	 * Sets the "-bindAddress" option that defines to which network ip the socket should be bound.
	 * This is relevant if the Super Dev Mode should be reachable from a remote
	 * host.
	 * 
	 * @param bindAddress
	 *            the bindAddress to set
	 */
	void setBindAddress(String bindAddress);

	Integer getPort();

	/**
	 * Sets the "-port" option that defines to which port the socket should be bound.
	 * 
	 * @param port
	 *            the port to set. Valid range is [1; 65535].
	 */
	void setPort(Integer port);

	Boolean getNoPrecompile();

	/**
	 * Sets the "-noprecompile" flag that causes the Super Dev Mode to not compile the
	 * modules on startup but only at access.
	 * 
	 * @param noPrecompile true if the noPrecompile flag should be set, false otherwise
	 */
	void setNoPrecompile(Boolean noPrecompile);

	/**
	 * If set to true, this causes the src to be prepended to the classpath instead of using -src parameters.
	 * This is necessary due to a bug in GWT 2.5/2.6.
	 * 
	 * @see https://code.google.com/p/google-web-toolkit/issues/detail?id=7750
	 * 
	 * @param useClasspathForSrc true to add the src to the classpath, false to use -src parameters
	 */
	void setUseClasspathForSrc(Boolean useClasspathForSrc);

	Boolean getUseClasspathForSrc();

	public abstract void setLauncherDir(File launcherDir);

	public abstract File getLauncherDir();

	public abstract void setCompileTestRecompiles(Integer compileTestRecompiles);

	public abstract Integer getCompileTestRecompiles();

	public abstract void setCompileTest(Boolean compileTest);

	public abstract Boolean getCompileTest();

	public abstract void setFailOnError(Boolean failOnError);

	public abstract Boolean getFailOnError();

	public abstract void setAllowMissingSrc(Boolean allowMissingSrc);

	public abstract Boolean getAllowMissingSrc();

	Boolean getClosureFormattedOutput();

	/**
	 * If set to true, this adds the parameter -XclosureFormattedOutput.
	 * If set to false, this adds the parameter -XnoclosureFormattedOutput.
	 * Added in GWT 2.8.
	 *
	 * @param closureFormattedOutput The closure formatted output.
	 */
	void setClosureFormattedOutput(Boolean closureFormattedOutput);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy