forked from dita-ot/docs
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
37 lines (29 loc) · 711 Bytes
/
build.gradle
File metadata and controls
37 lines (29 loc) · 711 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
plugins {
id 'com.github.eerohele.dita-ot-gradle' version '0.3.1'
}
ditaOt.dir System.getProperty('dita.home', '../')
afterEvaluate {
task pdf << {
dita.antBuilder.execute {
ant(antfile: 'build.xml', target: 'pdf')
}
}
task html << {
dita.antBuilder.execute {
ant(antfile: 'build.xml', target: 'html')
}
}
task htmlhelp << {
dita.antBuilder.execute {
ant(antfile: 'build.xml', target: 'htmlhelp')
}
}
task clean << {
dita.antBuilder.execute {
ant(antfile: 'build.xml', target: 'clean')
}
}
task all(dependsOn: ['pdf', 'html', 'htmlhelp'])
task dist(dependsOn: ['pdf', 'html'])
}
defaultTasks 'dist'