本文整理匯總了Java中org.gradle.api.Project.property方法的典型用法代碼示例。如果您正苦於以下問題:Java Project.property方法的具體用法?Java Project.property怎麽用?Java Project.property使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.gradle.api.Project
的用法示例。
在下文中一共展示了Project.property方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: TwitterPluginExtension
import org.gradle.api.Project; //導入方法依賴的package包/類
public TwitterPluginExtension(Project project) {
this.consumerKey = project.property(String.class);
this.consumerSecret = project.property(String.class);
this.accessToken = project.property(String.class);
this.accessTokenSecret = project.property(String.class);
this.message = project.property(String.class);
}
示例2: eclipseModel
import org.gradle.api.Project; //導入方法依賴的package包/類
private EclipseModel eclipseModel(Project project) {
try {
return (EclipseModel) project.property("eclipse");
} catch (MissingPropertyException e) {
throw new RuntimeException(
"Cannot find 'eclipse' property.\nEnsure that the following is in your project: \n\napply plugin: 'eclipse'\n\n",
e);
}
}
示例3: GeneratePluginExtension
import org.gradle.api.Project; //導入方法依賴的package包/類
public GeneratePluginExtension(Project project) {
outputPath = project.property(File.class);
generationMode = project.property(GenerationMode.class);
packages = project.property(String[].class);
action = project.property(Action.class);
jpaProperties = project.property(Properties.class);
formatOutput = project.property(Boolean.class);
skipSequences = project.property(Boolean.class);
delimiter = project.property(String.class);
}
示例4: MinikubeExtension
import org.gradle.api.Project; //導入方法依賴的package包/類
public MinikubeExtension(Project project, CommandExecutorFactory commandExecutorFactory) {
minikube = project.property(String.class);
setMinikube("minikube");
this.commandExecutorFactory = commandExecutorFactory;
}