本文整理汇总了Java中org.gradle.api.tasks.OutputDirectory类的典型用法代码示例。如果您正苦于以下问题:Java OutputDirectory类的具体用法?Java OutputDirectory怎么用?Java OutputDirectory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OutputDirectory类属于org.gradle.api.tasks包,在下文中一共展示了OutputDirectory类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getOutputDirectory
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
@OutputDirectory
protected File getOutputDirectory() {
File destinationDir = getDestinationDir();
if (destinationDir == null) {
destinationDir = options.getDestinationDirectory();
}
return destinationDir;
}
示例2: getOutputDirectory
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
@OutputDirectory
public File getOutputDirectory() {
if (outputDirectory == null) {
return null;
}
return getProject().file(outputDirectory);
}
示例3: getSdkLocation
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
/**
* This method will return the given sdkLocation, in case it is null, we throw
* an error
*
* @return location of the Sdk
* @throws Throwable
* if the location can't be found
*/
@OutputDirectory
public String getSdkLocation() throws Throwable {
sdkLocation = project.findProperty("sdkVersion") == null ? sdkLocation : (String) project.findProperty("sdkVersion");
if (sdkLocation == null || sdkLocation.isEmpty()) {
new Throwable("sdkLocation is empty, please check your gradle build file");
}
return sdkLocation;
}
示例4: getServerLocation
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
@OutputDirectory
public String getServerLocation() throws Throwable {
if (serverLocation == null || serverLocation.isEmpty()) {
throw new Throwable("serverLocation is empty, please check your gradle build file");
}
return serverLocation;
}
示例5: getSourceDir
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
@OutputDirectory
public File getSourceDir() {
return sourceDir;
}
示例6: getHeaderDir
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
@OutputDirectory
public File getHeaderDir() {
return headerDir;
}
示例7: getDestinationDir
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
@OutputDirectory
public File getDestinationDir() {
return getProject().file(destinationDir);
}
示例8: getDestinationDir
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
/**
* Returns the directory to generate the API documentation into.
*/
@OutputDirectory
public File getDestinationDir() {
return destinationDir;
}
示例9: getDestinationDir
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
/**
* Include the destination directory as an output, to pick up auxiliary files produced alongside the main output file
*/
@OutputDirectory
public File getDestinationDir() {
return getOutputFile().getParentFile();
}
示例10: getDestinationDir
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
/**
* The directory to install files into.
*/
@OutputDirectory
public File getDestinationDir() {
return destinationDir;
}
示例11: getOutputDirectory
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
/**
* The target output directory used for writing the classpath manifest. Defaults to {@code "$buildDir/$task.name"}.
*/
@OutputDirectory
public File getOutputDirectory() {
return outputDirectory;
}
示例12: getOutputDirectory
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
/**
* The location to write TestNG's output. <p> Defaults to the owning test task's location for writing the HTML report.
*
* @since 1.11
*/
@Incubating
@OutputDirectory
public File getOutputDirectory() {
return outputDirectory;
}
示例13: getDestinationDir
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
/**
* Returns the directory to write the HTML report to.
*/
@OutputDirectory
public File getDestinationDir() {
return destinationDir;
}
示例14: getBinResultsDir
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
/**
* Returns the root folder for the test results in internal binary format.
*
* @return the test result directory, containing the test results in binary format.
*/
@OutputDirectory
@Incubating
public File getBinResultsDir() {
return binResultsDir;
}
示例15: getObjectFileDir
import org.gradle.api.tasks.OutputDirectory; //导入依赖的package包/类
/**
* The directory where object files will be generated.
*/
@OutputDirectory
public File getObjectFileDir() {
return objectFileDir;
}