當前位置: 首頁>>代碼示例>>Java>>正文


Java Project.property方法代碼示例

本文整理匯總了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);
}
 
開發者ID:ferranpons,項目名稱:twitter-gradle-plugin,代碼行數:8,代碼來源:TwitterPluginExtension.java

示例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);
	}
}
 
開發者ID:greensopinion,項目名稱:gradle-android-eclipse,代碼行數:10,代碼來源:EclipseGeneratorPlugin.java

示例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);
}
 
開發者ID:Devskiller,項目名稱:jpa2ddl,代碼行數:11,代碼來源:GeneratePluginExtension.java

示例4: MinikubeExtension

import org.gradle.api.Project; //導入方法依賴的package包/類
public MinikubeExtension(Project project, CommandExecutorFactory commandExecutorFactory) {
  minikube = project.property(String.class);
  setMinikube("minikube");

  this.commandExecutorFactory = commandExecutorFactory;
}
 
開發者ID:GoogleCloudPlatform,項目名稱:minikube-build-tools-for-java,代碼行數:7,代碼來源:MinikubeExtension.java


注:本文中的org.gradle.api.Project.property方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。