I was confused when looking at the gradle source code. The destinationDirectory property in the AbstractArchiveTask is not declared AbstractArchiveTask, but why can it be called directly?
*archiveTask.destinationDirectory.set(new File(temporaryFolder.testDirectory, 'destinationDir'))* H
ow is this done?
The AbstractArchiveTask source code contains only methods and archiveDestinationDirectory attributes, but no destinationDirectory attributes.
public DirectoryProperty getDestinationDirectory() {
return archiveDestinationDirectory;
}
New contributor
Albert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.