org.gradle.api.tasks.options.Option.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.gradle.api.tasks.options.Option.<init>()方法的一些代码示例,展示了Option.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.<init>()方法的具体详情如下:
包路径:org.gradle.api.tasks.options.Option
类名称:Option
方法名:<init>

Option.<init>介绍

暂无

代码示例

代码示例来源:origin: gradle.plugin.io.sitoolkit.cv/sit-cv-gradle-plugin

@Option(option = "cvArgs", description = "Project directory path to generate report")
public void setCvArgs(String cvArgs) {
  this.cvArgs = cvArgs;
}

代码示例来源:origin: etiennestuder/gradle-credentials-plugin

@Option(option = "key", description = "The credentials key.")
@org.gradle.api.tasks.options.Option(option = "key", description = "The credentials key.")
public void setKey(String key) {
  this.key = key;
}

代码示例来源:origin: com.ca.apim.gateway/gateway-export-plugin

@Option(option = "outputType", description = "The output type of the configuration files. Either 'yaml' or 'json'.")
public void setOutputType(String format) {
  JsonTools.INSTANCE.setOutputType(format);
}

代码示例来源:origin: gradle.plugin.tui.sse.mde4cpp/MDE4CPPGeneratePlugin

/**
 * @param modelFilePath - model path
 */
@Option(option = "model", description = "Configure the path to the model used by generator.")
public void setModelFilePath(String modelFilePath)
{
  File file = new File(modelFilePath);
  if (file.exists())
  {
    setModelFilePath(file);
  }
}

代码示例来源:origin: gradle-clojure/gradle-clojure

@Option(option = "handler", description = "Qualified name of nREPL handler function.")
public void setHandler(String handler) {
 this.handler.set(handler);
}

代码示例来源:origin: gradle.plugin.tui.sse.mde4cpp/MDE4CPPGeneratePlugin

/**
 * @param structureOnly - indicates, that the generator UML4COO should be used for a UML model
 */
@Option(option = "structureOnly", description = "Indicates, that the generator UML4CPP should be used for a UML model.")
public void setStructureOnlyAsOption(boolean structureOnly)
{
  if (structureOnly)
  {
    setStructureOnly(structureOnly);
  }
}

代码示例来源:origin: etiennestuder/gradle-credentials-plugin

@Option(option = "key", description = "The credentials key.")
@org.gradle.api.tasks.options.Option(option = "key", description = "The credentials key.")
public void setKey(String key) {
  this.key = key;
}

代码示例来源:origin: io.github.gradle-clojure/gradle-clojure-plugin

@Option(option = "middleware", description = "Qualified names of nREPL middleware functions.")
public void setMiddleware(List<String> middleware) {
 if (middleware != null) {
  this.userMiddleware.set(middleware);
 }
}

代码示例来源:origin: palantir/gradle-baseline

@Option(option = "fix", description = "Whether to apply the suggested fix to versions.props")
public final void setShouldFix(boolean shouldFix) {
  this.shouldFix.set(shouldFix);
}

代码示例来源:origin: etiennestuder/gradle-credentials-plugin

@Option(option = "value", description = "The credentials value.")
@org.gradle.api.tasks.options.Option(option = "value", description = "The credentials value.")
public void setValue(String value) {
  this.value = value;
}

代码示例来源:origin: gradle-clojure/gradle-clojure

@Option(option = "middleware", description = "Qualified names of nREPL middleware functions.")
public void setMiddleware(List<String> middleware) {
 if (middleware != null) {
  this.userMiddleware.set(middleware);
 }
}

代码示例来源:origin: io.github.gradle-clojure/gradle-clojure-plugin

@Option(option = "port", description = "Port the nREPL server should listen on.")
public void setPort(String port) {
 setPort(Integer.parseInt(port));
}

代码示例来源:origin: palantir/gradle-baseline

@Option(option = "fix", description = "Whether to apply the suggested fix to versions.props")
public final void setShouldFix(boolean shouldFix) {
  this.shouldFix.set(shouldFix);
}

代码示例来源:origin: io.github.gradle-clojure/gradle-clojure-plugin

@Option(option = "handler", description = "Qualified name of nREPL handler function.")
public void setHandler(String handler) {
 this.handler.set(handler);
}

代码示例来源:origin: palantir/gradle-baseline

@Option(option = "fix", description = "Whether to apply the suggested fix to versions.props")
public final void setShouldFix(boolean shouldFix) {
  this.shouldFix.set(shouldFix);
}

代码示例来源:origin: gradle-clojure/gradle-clojure

@Option(option = "port", description = "Port the nREPL server should listen on.")
public void setPort(String port) {
 setPort(Integer.parseInt(port));
}

代码示例来源:origin: gradle.plugin.com.google.cloud.tools/jib-gradle-plugin

/**
 * The target image can be overridden with the {@code --image} command line option.
 *
 * @param targetImage the name of the 'to' image.
 */
@Option(option = "image", description = "The image reference for the target image")
public void setTargetImage(String targetImage) {
 Preconditions.checkNotNull(jibExtension).getTo().setImage(targetImage);
}

代码示例来源:origin: gradle.plugin.com.google.cloud.tools/jib-gradle-plugin

/**
 * The target image can be overridden with the {@code --image} command line option.
 *
 * @param targetImage the name of the 'to' image.
 */
@Option(option = "image", description = "The image reference for the target image")
public void setTargetImage(String targetImage) {
 Preconditions.checkNotNull(jibExtension).getTo().setImage(targetImage);
}

代码示例来源:origin: gradle.plugin.com.google.cloud.tools/jib-gradle-plugin

/**
 * The target image can be overridden with the {@code --image} command line option.
 *
 * @param targetImage the name of the 'to' image.
 */
@Option(option = "image", description = "The image reference for the target image")
public void setTargetImage(String targetImage) {
 Preconditions.checkNotNull(jibExtension).getTo().setImage(targetImage);
}

代码示例来源:origin: prezi/pride

@Option(option = "configuration", description = "The configuration to generate the report for.")
public void setConfiguration(String configurationName) {
  this.configurations = Collections.singleton(getProject().getConfigurations().getByName(configurationName));
}

相关文章

微信公众号

最新文章

更多

Option类方法