By creating a task of a type, you inherit the properties and actions of that type.
- Configure the placeholder
zipTask
task to zip up all the.txt
files in the project directory - Run
./gradlew zipTask
- Assert the zip file contains all the
.txt
files
- Configure the placeholder
copyTask
task to copy the zip file made byzipTask
to the folderarchive
- Run
./gradlew copyTask
- Assert the zip file has been copied to an
archive
subdirectory
- Configure the placeholder
deleteTask
task to delete all.txt
and.zip
files from the project root directory - Run
./gradlew deleteTask
- Assert the
.zip
and.txt
files have been removed
- Create an
Exec
task that executes eitherls
ordir
.