+ update doc copySpec to prevent images from being filtered

This commit is contained in:
Costin Leau
2011-07-19 21:23:47 +03:00
parent fc2a66afab
commit 2daf3ea5fd

View File

@@ -21,15 +21,25 @@ def imagesDir = new File(projectDir, 'src/reference/resources/images');
[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.admonGraphicsPath = "./images/admon/"
[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.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()
@@ -40,6 +50,8 @@ refSpec = copySpec {
}
filter(ReplaceTokens, tokens: p)
with(imgSpec)
}
task reference (type: Copy) {