Java 类org.gradle.api.internal.tasks.options.Option 实例源码

项目:Reer    文件:Wrapper.java   
/**
 * The version of the gradle distribution required by the wrapper. This is usually the same version of Gradle you
 * use for building your project.
 */
@Option(option = "gradle-version", description = "The version of the Gradle distribution required by the wrapper.")
public void setGradleVersion(String gradleVersion) {
    this.gradleVersion = GradleVersion.version(gradleVersion);
}
项目:Reer    文件:InitBuild.java   
@Option(option = "type", description = "Set type of build to create.", order = 0)
public void setType(String type) {
    this.type = type;
}
项目:Reer    文件:InitBuild.java   
@Option(option = "test-framework", description = "Set alternative test framework to be used.", order = 1)
public void setTestFramework(String testFramework) {
    this.testFramework = testFramework;
}
项目:Reer    文件:ModelReport.java   
@Option(option = "showHidden", description = "Show hidden model elements.")
public void setShowHidden(boolean showHidden) {
    this.showHidden = showHidden;
}
项目:Reer    文件:ModelReport.java   
@Option(option = "format", description = "Output format (full, short)")
public void setFormat(String format) {
    this.format = Format.valueOf(format.toUpperCase());
}
项目:Reer    文件:DependentComponentsReport.java   
@Option(option = "non-buildable", description = "Show non-buildable components.")
public void setShowNonBuildable(boolean showNonBuildable) {
    this.showNonBuildable = showNonBuildable;
}
项目:Reer    文件:DependentComponentsReport.java   
@Option(option = "test-suites", description = "Show test suites components.")
public void setShowTestSuites(boolean showTestSuites) {
    this.showTestSuites = showTestSuites;
}
项目:Reer    文件:DependentComponentsReport.java   
/**
 * Set this to include both non buildable components and test suites in the report.
 */
@Option(option = "all", description = "Show all components (non-buildable and test suites).")
public void setShowAll(boolean showAll) {
    this.showNonBuildable = showAll;
    this.showTestSuites = showAll;
}
项目:Reer    文件:TaskReportTask.java   
@Option(option = "all", description = "Show additional tasks and detail.")
public void setShowDetail(boolean detail) {
    this.detail = detail;
}
项目:Reer    文件:Help.java   
@Option(option = "task", description = "The task to show help for.")
public void setTaskPath(String taskPath) {
    this.taskPath = taskPath;
}
项目:Reer    文件:Test.java   
/**
 * {@inheritDoc}
 */
@Override
@Option(option = "debug-jvm", description = "Enable debugging for the test process. The process is started suspended and listening on port 5005. [INCUBATING]")
public void setDebug(boolean enabled) {
    forkOptions.setDebug(enabled);
}
项目:Reer    文件:JavaExec.java   
/**
 * {@inheritDoc}
 */
@Option(option = "debug-jvm", description = "Enable debugging for the process. The process is started suspended and listening on port 5005. [INCUBATING]")
public void setDebug(boolean enabled) {
    javaExecHandleBuilder.setDebug(enabled);
}
项目:Pushjet-Android    文件:TaskReportTask.java   
@Option(option = "all", description = "Show additional tasks and detail.")
public void setShowDetail(boolean detail) {
    this.detail = detail;
}
项目:Pushjet-Android    文件:Help.java   
@Option(option = "task", description = "The task to show help for.")
public void setTaskPath(String taskPath) {
    this.taskPath = taskPath;
}
项目:Pushjet-Android    文件:JavaExec.java   
/**
 * {@inheritDoc}
 */
@Option(option = "debug-jvm", description = "Enable debugging for the process. The process is started suspended and listening on port 5005. [INCUBATING]")
public void setDebug(boolean enabled) {
    javaExecHandleBuilder.setDebug(enabled);
}
项目:Pushjet-Android    文件:Test.java   
/**
 * {@inheritDoc}
 */
@Option(option = "debug-jvm", description = "Enable debugging for the test process. The process is started suspended and listening on port 5005. [INCUBATING]")
public void setDebug(boolean enabled) {
    forkOptions.setDebug(enabled);
}
项目:Pushjet-Android    文件:TaskReportTask.java   
@Option(option = "all", description = "Show additional tasks and detail.")
public void setShowDetail(boolean detail) {
    this.detail = detail;
}
项目:Pushjet-Android    文件:Help.java   
@Option(option = "task", description = "The task, detailed help is requested for.")
public void setTaskPath(String taskPath) {
    this.taskPath = taskPath;
}
项目:Pushjet-Android    文件:JavaExec.java   
/**
 * {@inheritDoc}
 */
@Option(option = "debug-jvm", description = "Enable debugging for the process. The process is started suspended and listening on port 5005. [INCUBATING]")
public void setDebug(boolean enabled) {
    javaExecHandleBuilder.setDebug(enabled);
}
项目:Pushjet-Android    文件:Test.java   
/**
 * {@inheritDoc}
 */
@Option(option = "debug-jvm", description = "Enable debugging for the test process. The process is started suspended and listening on port 5005. [INCUBATING]")
public void setDebug(boolean enabled) {
    forkOptions.setDebug(enabled);
}
项目:gradle-credentials-plugin    文件:AddCredentialsTask.java   
@Option(option = "key", description = "The credentials key.")
public void setKey(String key) {
    this.key = key;
}
项目:gradle-credentials-plugin    文件:AddCredentialsTask.java   
@Option(option = "value", description = "The credentials value.")
public void setValue(String value) {
    this.value = value;
}
项目:gradle-credentials-plugin    文件:RemoveCredentialsTask.java   
@Option(option = "key", description = "The credentials key.")
public void setKey(String key) {
    this.key = key;
}
项目:Reer    文件:Test.java   
/**
 * Sets the test name patterns to be included in execution.
 * Classes or method names are supported, wildcard '*' is supported.
 * For more information see the user guide chapter on testing.
 *
 * For more information on supported patterns see {@link TestFilter}
 */
@Option(option = "tests", description = "Sets test class or method name to be included, '*' is supported.")
@Incubating
public Test setTestNameIncludePatterns(List<String> testNamePattern) {
    filter.setIncludePatterns(testNamePattern.toArray(new String[]{}));
    return this;
}
项目:Pushjet-Android    文件:Test.java   
/**
 * Sets the test name patterns to be included in execution.
 * Classes or method names are supported, wildcard '*' is supported.
 * For more information see the user guide chapter on testing.
 *
 * For more information on supported patterns see {@link TestFilter}
 */
@Option(option = "tests", description = "Sets test class or method name to be included, '*' is supported.")
@Incubating
public Test setTestNameIncludePattern(String testNamePattern) {
    filter.setIncludePatterns(testNamePattern);
    return this;
}
项目:Pushjet-Android    文件:Test.java   
/**
 * Sets the test name patterns to be included in execution.
 * Classes or method names are supported, wildcard '*' is supported.
 * For more information see the user guide chapter on testing.
 *
 * For more information on supported patterns see {@link TestFilter}
 */
@Option(option = "tests", description = "Sets test class or method name to be included, '*' is supported.")
@Incubating
public Test setTestNameIncludePattern(String testNamePattern) {
    filter.setIncludePatterns(testNamePattern);
    return this;
}
项目:Reer    文件:Wrapper.java   
/**
 * The type of the Gradle distribution to be used by the wrapper. By default, this is {@link DistributionType#BIN},
 * which is the binary-only Gradle distribution without documentation.
 *
 * @see DistributionType
 */
@Option(option = "distribution-type", description = "The type of the Gradle distribution to be used by the wrapper.")
public void setDistributionType(DistributionType distributionType) {
    this.distributionType = distributionType;
}
项目:Reer    文件:Wrapper.java   
/**
 * The URL to download the gradle distribution from.
 *
 * <p>If not set, the download URL is the default for the specified {@link #getGradleVersion()}.
 *
 * <p>If {@link #getGradleVersion()} is not set, will return null.
 *
 * <p>The wrapper downloads a certain distribution only once and caches it. If your distribution base is the
 * project, you might submit the distribution to your version control system. That way no download is necessary at
 * all. This might be in particular interesting, if you provide a custom gradle snapshot to the wrapper, because you
 * don't need to provide a download server then.
 */
@Option(option = "gradle-distribution-url", description = "The URL to download the Gradle distribution from.")
public void setDistributionUrl(String url) {
    this.distributionUrl = url;
}
项目:Reer    文件:DependentComponentsReport.java   
/**
 * Sets the components to generate the report for.
 *
 * @param components the components.
 */
@Option(option = "component", description = "Component to generate the report for (can be specified more than once).")
public void setComponents(List<String> components) {
    this.components = components;
}
项目:Reer    文件:DependencyInsightReportTask.java   
/**
 * Configures the dependency to show the report for.
 * Multiple notation formats are supported: Strings, instances of {@link Spec}
 * and groovy closures. Spec and closure receive {@link DependencyResult} as parameter.
 * Examples of String notation: 'org.slf4j:slf4j-api', 'slf4j-api', or simply: 'slf4j'.
 * The input may potentially match multiple dependencies.
 * See also {@link DependencyInsightReportTask#setDependencySpec(Spec)}
 * <p>
 * This method is exposed to the command line interface. Example usage:
 * <pre>gradle dependencyInsight --dependency slf4j</pre>
 */
@Option(option = "dependency", description = "Shows the details of given dependency.")
public void setDependencySpec(Object dependencyInsightNotation) {
    NotationParser<Object, Spec<DependencyResult>> parser = DependencyResultSpecNotationConverter.parser();
    this.dependencySpec = parser.parseNotation(dependencyInsightNotation);
}
项目:Reer    文件:DependencyInsightReportTask.java   
/**
 * Sets the configuration (via name) to look the dependency in.
 * <p>
 * This method is exposed to the command line interface. Example usage:
 * <pre>gradle dependencyInsight --configuration runtime --dependency slf4j</pre>
 */
@Option(option = "configuration", description = "Looks for the dependency in given configuration.")
public void setConfiguration(String configurationName) {
    this.configuration = getProject().getConfigurations().getByName(configurationName);
}
项目:Reer    文件:AbstractDependencyReportTask.java   
/**
 * Sets the single configuration (by name) to generate the report for.
 *
 * @param configurationName name of the configuration to generate the report for
 */
@Option(option = "configuration", description = "The configuration to generate the report for.")
public void setConfiguration(String configurationName) {
    this.configurations = Collections.singleton(getTaskConfigurations().getByName(configurationName));
}
项目:gradle-cloud-deployer    文件:BaseSingleEnvironmentTask.java   
/**
 * Sets the environment id. This method may also be called when
 * the environment id is set via the command line option.
 *
 * @param environmentId The environment id.
 */
@Option(option = "environmentId", description = "The id of the environment that will be used.")
public void setEnvironmentId(String environmentId) {
    this.environmentId = environmentId;
}
项目:Pushjet-Android    文件:DependencyReportTask.java   
/**
 * Sets the single configuration (by name) to generate the report for.
 *
 * @param configurationName name of the configuration to generate the report for
 */
@Option(option = "configuration", description = "The configuration to generate the report for.")
public void setConfiguration(String configurationName) {
    this.configurations = Collections.singleton(getProject().getConfigurations().getByName(configurationName));
}
项目:Pushjet-Android    文件:DependencyReportTask.java   
/**
 * Sets the single configuration (by name) to generate the report for.
 *
 * @param configurationName name of the configuration to generate the report for
 */
@Option(option = "configuration", description = "The configuration to generate the report for.")
public void setConfiguration(String configurationName) {
    this.configurations = Collections.singleton(getProject().getConfigurations().getByName(configurationName));
}