org.gradle.api.file.DirectoryProperty Java Examples

The following examples show how to use org.gradle.api.file.DirectoryProperty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NoHttpCheckstylePlugin.java    From nohttp with Apache License 2.0 5 votes vote down vote up
private boolean configureConfigDirectory(Checkstyle checkstyleTask) {
	File configDirectory = new File(this.project.relativePath(getConfigLocation()));
	try {
		DirectoryProperty property = (DirectoryProperty) checkstyleTask.getClass().getMethod("getConfigDirectory").invoke(checkstyleTask);
		property.set(configDirectory);
		return false;
	}
	catch (Exception ex) {
		// Fall back to configDir
	}
	checkstyleTask.setConfigDir(project.provider(() -> configDirectory));
	return true;
}
 
Example #2
Source File: ClojureScriptCompileOptions.java    From clojurephant with Apache License 2.0 5 votes vote down vote up
public ClojureScriptCompileOptions(Project project, DirectoryProperty destinationDir) {
  this.project = project;
  this.destinationDir = destinationDir;
  this.outputTo = project.getObjects().fileProperty();
  this.outputDir = project.getObjects().directoryProperty();
  this.sourceMapFile = project.getObjects().fileProperty();
}
 
Example #3
Source File: ConfigureTask.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@Internal
public DirectoryProperty getPrefixDirectory() {
    return prefixDirectory;
}
 
Example #4
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@Internal
public DirectoryProperty getProjectDirectory() {
    return projectDirectory;
}
 
Example #5
Source File: AutotoolsExtension.java    From native-samples with Apache License 2.0 4 votes vote down vote up
public DirectoryProperty getIncludeDirectory() {
    return includeDirectory;
}
 
Example #6
Source File: ContractVerifierExtension.java    From spring-cloud-contract with Apache License 2.0 4 votes vote down vote up
public DirectoryProperty getGeneratedTestSourcesDir() {
	return generatedTestSourcesDir;
}
 
Example #7
Source File: CMakeExtension.java    From native-samples with Apache License 2.0 4 votes vote down vote up
public final DirectoryProperty getProjectDirectory() {
    return projectDirectory;
}
 
Example #8
Source File: Make.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@Internal
public final DirectoryProperty getVariantDirectory() {
    return variantDirectory;
}
 
Example #9
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@Internal
public DirectoryProperty getProjectDirectory() {
    return projectDirectory;
}
 
Example #10
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@Internal
public DirectoryProperty getVariantDirectory() {
    return variantDirectory;
}
 
Example #11
Source File: DownloadZipAndUnpack.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputDirectory
public DirectoryProperty getOutputDirectory() {
    return outputDirectory;
}
 
Example #12
Source File: Make.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputDirectory
public final DirectoryProperty getOutputDirectory() {
    return outputDirectory;
}
 
Example #13
Source File: DownloadZipAndUnpack.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputDirectory
public DirectoryProperty getOutputDirectory() {
    return outputDirectory;
}
 
Example #14
Source File: ConfigureTask.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@Internal
public DirectoryProperty getPrefixDirectory() {
    return prefixDirectory;
}
 
Example #15
Source File: ConfigureTask.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputDirectory
public DirectoryProperty getMakeDirectory() {
    return makeDirectory;
}
 
Example #16
Source File: ConfigureTask.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@InputDirectory
public DirectoryProperty getSourceDirectory() {
    return sourceDirectory;
}
 
Example #17
Source File: AutotoolsExtension.java    From native-samples with Apache License 2.0 4 votes vote down vote up
public DirectoryProperty getSourceDirectory() {
    return sourceDirectory;
}
 
Example #18
Source File: AutotoolsExtension.java    From native-samples with Apache License 2.0 4 votes vote down vote up
public DirectoryProperty getIncludeDirectory() {
    return includeDirectory;
}
 
Example #19
Source File: CMakeExtension.java    From native-samples with Apache License 2.0 4 votes vote down vote up
public final DirectoryProperty getProjectDirectory() {
    return projectDirectory;
}
 
Example #20
Source File: CMakeExtension.java    From native-samples with Apache License 2.0 4 votes vote down vote up
public final DirectoryProperty getIncludeDirectory() {
    return includeDirectory;
}
 
Example #21
Source File: Make.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputDirectory
public final DirectoryProperty getOutputDirectory() {
    return outputDirectory;
}
 
Example #22
Source File: SymbolicLinkPreservingUntarTask.java    From crate with Apache License 2.0 4 votes vote down vote up
@OutputDirectory
public DirectoryProperty getExtractPath() {
    return extractPath;
}
 
Example #23
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@Internal
public DirectoryProperty getProjectDirectory() {
    return projectDirectory;
}
 
Example #24
Source File: CMake.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@Internal
public DirectoryProperty getVariantDirectory() {
    return variantDirectory;
}
 
Example #25
Source File: DownloadZipAndUnpack.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputDirectory
public DirectoryProperty getOutputDirectory() {
    return outputDirectory;
}
 
Example #26
Source File: ContractVerifierExtension.java    From spring-cloud-contract with Apache License 2.0 4 votes vote down vote up
public DirectoryProperty getContractsDslDir() {
	return contractsDslDir;
}
 
Example #27
Source File: ConfigureTask.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@OutputDirectory
public DirectoryProperty getMakeDirectory() {
    return makeDirectory;
}
 
Example #28
Source File: ConfigureTask.java    From native-samples with Apache License 2.0 4 votes vote down vote up
@InputDirectory
public DirectoryProperty getSourceDirectory() {
    return sourceDirectory;
}
 
Example #29
Source File: SourceCopyTask.java    From native-samples with Apache License 2.0 4 votes vote down vote up
public DirectoryProperty getTemplatesDir() {
    return templatesDir;
}
 
Example #30
Source File: SourceCopyTask.java    From native-samples with Apache License 2.0 4 votes vote down vote up
public DirectoryProperty getSampleDir() {
    return sampleDir;
}