-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcopy.gradle
More file actions
42 lines (33 loc) · 770 Bytes
/
copy.gradle
File metadata and controls
42 lines (33 loc) · 770 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
To manually create this website using this script :
cd /Users/jim/Dropbox/Project/Website
gradlew copy.gradle
This code is not quite complete - may need to add a few missing 'include's below !
*/
defaultTasks 'copier'
repositories {
mavenCentral()
}
dependencies {
//compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
}
task website(type: Copy) {
into "${buildDir}/website"
from ("$projectDir/src/main/webapp/")
{ exclude "WEB-INF/**.**" }
}
task copier(type:Copy) {
from ("$projectDir/src/main/webapp/")
{
include '**/*.html'
include '**/*.pdf'
include '**/*.css'
include '**/*.txt'
include '**/*.gif'
include '**/*.png'
include '**/*.jpg'
include '**/*.jpeg'
include '**/*.svg'
}
into("$buildDir/website")
}