forked from udacity/ud867
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·26 lines (20 loc) · 1.26 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
In this series of exercies you'll be configuring tasks to copy and delete
files as well as build archives. This example contains some sample files
that you'll be using to complete the exercises below.
Exercises:
1. Create a task named "copyWeb". This task should perform the following:
a) Copy files from "src/web" to a folder "build/web".
b) Copy all .txt files from "src/docs" to folder "build/web/help".
2. Create a task named "bundleWeb". This task should perform the following:
a) Create a zip file located in the "build" folder named "web.zip".
b) Include all the files copied by the "copyWeb" task except the
"images" directory.
3. Create a task named "unpackBundle". This task should perform the following:
a) Expand the zip file created by the "bundleWeb" task.
b) Copy the contents to a folder "build/exploded".
HINT: There isn't an UnZip task, so what task type do you need? You're kinda copying files so...
HINT: https://docs.gradle.org/current/dsl/org.gradle.api.Project.html#org.gradle.api.Project:zipTree(java.lang.Object)
4. Create a task named "deleteHelp". This task should perform the following:
a) Delete the "help" folder created by the "copyWeb" task.
*/