use of org.gradle.api.tasks.SkipWhenEmpty in project gradle by gradle.
the class InstallXCTestBundle method getBundleBinary.
@SkipWhenEmpty
@Nullable
@Optional
@InputFile
protected File getBundleBinary() {
RegularFile bundle = getBundleBinaryFile().get();
File bundleFile = bundle.getAsFile();
if (!bundleFile.exists()) {
return null;
}
return bundleFile;
}
use of org.gradle.api.tasks.SkipWhenEmpty in project gradle by gradle.
the class XCTest method getRunScript.
/**
* Workaround for when the task is given an input file that doesn't exist
*/
@SkipWhenEmpty
@Nullable
@Optional
@InputFile
protected File getRunScript() {
RegularFile runScript = getRunScriptFile().get();
File runScriptFile = runScript.getAsFile();
if (!runScriptFile.exists()) {
return null;
}
return runScriptFile;
}
Aggregations