本文整理汇总了Java中org.gradle.api.tasks.InputFile类的典型用法代码示例。如果您正苦于以下问题:Java InputFile类的具体用法?Java InputFile怎么用?Java InputFile使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InputFile类属于org.gradle.api.tasks包,在下文中一共展示了InputFile类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getInputFileIfExists
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
@Optional @InputFile
protected File getInputFileIfExists() {
File inputFile = getInputFile();
if (inputFile == null) {
File outputFile = getOutputFile();
if (outputFile != null && outputFile.exists()) {
return outputFile;
} else {
return null;
}
} else if (inputFile.exists()) {
return inputFile;
} else {
return null;
}
}
示例2: getWebXmlIfExists
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
@Optional @InputFile
protected File getWebXmlIfExists() {
File webXml = getWebXml();
if (webXml != null && webXml.exists()) {
return webXml;
} else {
return null;
}
}
示例3: getWebXml
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
/**
* Returns the {@code web.xml} file to include in the WAR archive. When {@code null}, no {@code web.xml} file is included in the WAR.
*
* @return The {@code web.xml} file.
*/
@InputFile
@PathSensitive(PathSensitivity.NONE)
@Optional
public File getWebXml() {
return webXml;
}
示例4: getAdbExe
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
@InputFile
public File getAdbExe() {
SdkInfo sdkInfo = getBuilder().getSdkInfo();
if (sdkInfo == null) {
return null;
}
return sdkInfo.getAdb();
}
示例5: getScript
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
@InputFile
@Optional
public File getScript() {
return script == null ? null : getProject().file(script);
}
示例6: getStyleSheet
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
/**
* Returns the style sheet to override default style.
*/
@InputFile @Optional
public File getStyleSheet() {
return styleSheet;
}
示例7: getExecutable
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
/**
* The executable file to install.
*/
@InputFile
public File getExecutable() {
return executable;
}
示例8: getPrefixHeaderFile
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
@Optional @InputFile
public File getPrefixHeaderFile() {
return prefixHeaderFile;
}
示例9: getWebApp
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
/**
* Returns the web application to deploy.
*/
@InputFile
public File getWebApp() {
return webApp;
}
示例10: getWebDefaultXml
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
@InputFile
@Optional
public File getWebDefaultXml() {
return webDefaultXml;
}
示例11: getOverrideWebXml
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
@InputFile
@Optional
public File getOverrideWebXml() {
return overrideWebXml;
}
示例12: getJettyConfig
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
/**
* Returns the jetty configuration file to use. When {@code null}, no configuration file is used.
*/
@InputFile
@Optional
public File getJettyConfig() {
return jettyConfig;
}
示例13: getJettyEnvXml
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
@InputFile
@Optional
public File getJettyEnvXml() {
return jettyEnvXml;
}
示例14: getJettyEnvXmlFile
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
@InputFile
@Optional
public File getJettyEnvXmlFile() {
return jettyEnvXmlFile;
}
示例15: getAnnotationType
import org.gradle.api.tasks.InputFile; //导入依赖的package包/类
public Class<? extends Annotation> getAnnotationType() {
return InputFile.class;
}