+ add dedicated img spec

This commit is contained in:
Costin Leau
2011-07-27 11:49:32 +03:00
parent 58c0822adf
commit 9a31eb13f8

View File

@@ -21,17 +21,26 @@ def imagesDir = new File(projectDir, 'src/reference/resources/images');
docbookFoPdf.admonGraphicsPath = "${imagesDir}/admon"
docbookFoPdf.imgSrcPath = "${imagesDir}"
// defined separately to prevent the replacement from taking place (seems to affect the images)
imgSpec = copySpec {
into ('reference') {
from("$projectDir/src/reference/resources") {
include "css/**/*"
}
}
into ('reference/images') {
from (imagesDir)
}
}
refSpec = copySpec {
into ('reference') {
from("$buildDir/docs") {
exclude '*.fo'
}
from("$projectDir/src/reference/resources")
}
into ('reference/images') {
from (imagesDir)
}
p = new Properties()
for (e in project.properties) {
@@ -40,6 +49,7 @@ refSpec = copySpec {
}
filter(ReplaceTokens, tokens: p)
with(imgSpec)
}
task reference (type: Copy) {