1
0
mirror of synced 2026-08-05 17:57:15 +00:00

Added imgSrcPath parameter for use in docbookFopPdf task.

This commit is contained in:
Luke Taylor
2010-11-19 22:53:57 +00:00
parent 51a53ddbaa
commit 49242729e4
2 changed files with 14 additions and 7 deletions
@@ -72,6 +72,8 @@ public class Docbook extends DefaultTask {
String admonGraphicsPath;
String imgSrcPath;
@InputDirectory
File sourceDirectory = new File(project.getProjectDir(), "src/docbook");
@@ -115,11 +117,15 @@ public class Docbook extends DefaultTask {
}
transformer.setParameter("highlight.xslthl.config", new File(highlightingDir, "xslthl-config.xml").toURI().toURL());
}
if (admonGraphicsPath != null) {
transformer.setParameter("admon.graphics", "1");
transformer.setParameter("admon.graphics.path", admonGraphicsPath);
}
if (admonGraphicsPath != null) {
transformer.setParameter("admon.graphics", "1");
transformer.setParameter("admon.graphics.path", admonGraphicsPath);
}
if (imgSrcPath != null) {
transformer.setParameter("img.src.path", imgSrcPath);
}
preTransform(transformer, srcFile, outputFile);
@@ -257,9 +263,9 @@ class DocbookFoPdf extends Docbook {
}
}
if (!foFile.delete()) {
/* if (!foFile.delete()) {
logger.warn("Failed to delete 'fo' file " + foFile);
}
}*/
}
private File getPdfOutputFile(File foFile) {