org.gosulang.gradle.tasks.gosudoc.GosuDocOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-gosu-plugin Show documentation
Show all versions of gradle-gosu-plugin Show documentation
Gosu language compiler for Gradle. Built with Gradle 5.1.1.
This has also been tested extensively with Gradle version(s): 5.1.1
** Gradle versions below 2.12 are no longer supported **
Projects applying this plugin require a compile-time dependency on the gosu-core-api library.
This version requires Gosu 1.13.9 or greater, or 1.14.2 or greater.
Please include this in the depencencies closure:
dependencies {
compile group: 'org.gosu-lang.gosu', name: 'gosu-core-api', version: '1.14.12'
}
package org.gosulang.gradle.tasks.gosudoc;
import org.gradle.api.tasks.Console;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.Nested;
import org.gradle.api.tasks.Optional;
import org.gradle.api.tasks.compile.AbstractOptions;
import org.gradle.api.tasks.compile.ForkOptions;
public class GosuDocOptions extends AbstractOptions {
//for some reason related to Java reflection, we need to name these private fields exactly like their getters/setters (no leading '_')
private String title;
private ForkOptions forkOptions = new ForkOptions();
private boolean _verbose;
/**
* Returns the HTML text to appear in the main frame title.
* @return the HTML text to appear in the main frame title.
*/
@Input
@Optional
public String getTitle() {
return title;
}
/**
* Sets the HTML text to appear in the main frame title.
* @param title the HTML text to appear in the main frame title.
*/
public void setTitle(String title) {
this.title = title;
}
/**
* @return Options for running the gosudoc generator in a separate process.
*/
@Nested
public ForkOptions getForkOptions() {
return forkOptions;
}
/**
* @param forkOptions Options for running the gosudoc generator in a separate process.
*/
public void setForkOptions(ForkOptions forkOptions) {
this.forkOptions = forkOptions;
}
@Console
public boolean isVerbose() {
return _verbose;
}
public void setVerbose( boolean verbose ) {
_verbose = verbose;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy