本文整理汇总了Java中org.gradle.api.tasks.OutputFile类的典型用法代码示例。如果您正苦于以下问题:Java OutputFile类的具体用法?Java OutputFile怎么用?Java OutputFile使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OutputFile类属于org.gradle.api.tasks包,在下文中一共展示了OutputFile类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPropertiesFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
/**
* Returns the file to write the wrapper properties to.
*/
@OutputFile
public File getPropertiesFile() {
File jarFileDestination = getJarFile();
return new File(jarFileDestination.getParentFile(), jarFileDestination.getName().replaceAll("\\.jar$",
".properties"));
}
示例2: getHtmlOutput
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
/** The optional path to where an HTML report should be written */
@Override
@Nullable
@Optional
@OutputFile
public File getHtmlOutput() {
return htmlOutput;
}
示例3: getXmlOutput
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
/** The optional path to where an XML report should be written */
@Override
@Nullable
@Optional
@OutputFile
public File getXmlOutput() {
return xmlOutput;
}
示例4: getStateFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
@OutputFile
private File getStateFile() {
final File buildDir = getProject().getBuildDir();
final File taskDir = new File(buildDir, TASK_TEMP_FILE__NAME);
if(!taskDir.exists()) {
taskDir.mkdirs();
}
return new File(taskDir, "using-ormlite.txt");
}
示例5: getChecksumFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
@Optional
@OutputFile
public File getChecksumFile() {
File checksumFile = _checksumFile;
if (checksumFile == null) {
final String extension = _algorithm.toLowerCase().replace("-", "");
checksumFile = new File(
_inputFile.getParent(),
format("%s.%s", _inputFile.getName(), extension)
);
}
return checksumFile;
}
示例6: getOutputFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
@OutputFile
public File getOutputFile() {
return outputFile;
}
示例7: getScriptFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
/**
* Returns the file to write the wrapper script to.
*/
@OutputFile
public File getScriptFile() {
return getProject().file(scriptFile);
}
示例8: getBatchScript
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
/**
* Returns the file to write the wrapper batch script to.
*/
@OutputFile
public File getBatchScript() {
File scriptFile = getScriptFile();
return new File(scriptFile.getParentFile(), scriptFile.getName().replaceFirst("(\\.[^\\.]+)?$", ".bat"));
}
示例9: getJarFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
/**
* Returns the file to write the wrapper jar file to.
*/
@OutputFile
public File getJarFile() {
return getProject().file(jarFile);
}
示例10: getJsonReport
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
@OutputFile
public File getJsonReport() {
return jsonReport == null ? null : getProject().file(jsonReport);
}
示例11: getOutputFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
@OutputFile
public File getOutputFile() {
return outputFile;
}
示例12: getDestinationFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
/**
* File to write merged execution data to.
*/
@OutputFile
public File getDestinationFile() {
return destinationFile;
}
示例13: getOutputFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
/**
* The file where the linked binary will be located.
*/
@OutputFile
public File getOutputFile() {
return outputFile;
}
示例14: getOutputFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
/**
* The file where the output binary will be located.
*/
@OutputFile
public File getOutputFile() {
return outputFile;
}
示例15: getPrefixHeaderFile
import org.gradle.api.tasks.OutputFile; //导入依赖的package包/类
@OutputFile
public File getPrefixHeaderFile() {
return prefixHeaderFile;
}