Merge "support the glossaryCollection parameter in autopdf."
This commit is contained in:
@@ -915,6 +915,7 @@ public abstract class WebHelpMojo extends AbstractWebhelpMojo {
|
|||||||
pdfBuilder.setGenerateToc(getProperty("generateToc"));
|
pdfBuilder.setGenerateToc(getProperty("generateToc"));
|
||||||
pdfBuilder.setTocMaxDepth(getProperty("tocMaxDepth"));
|
pdfBuilder.setTocMaxDepth(getProperty("tocMaxDepth"));
|
||||||
pdfBuilder.setTocSectionDepth(getProperty("tocSectionDepth"));
|
pdfBuilder.setTocSectionDepth(getProperty("tocSectionDepth"));
|
||||||
|
pdfBuilder.setGlossaryCollection(getProperty("glossaryCollection"));
|
||||||
|
|
||||||
File srcFilename = new File(this.projectBuildDirectory, "docbkx/"+sourceFile.getName());
|
File srcFilename = new File(this.projectBuildDirectory, "docbkx/"+sourceFile.getName());
|
||||||
if(srcFilename.exists()) {
|
if(srcFilename.exists()) {
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ public class PDFBuilder {
|
|||||||
private String generateToc;
|
private String generateToc;
|
||||||
private String tocMaxDepth;
|
private String tocMaxDepth;
|
||||||
private String tocSectionDepth;
|
private String tocSectionDepth;
|
||||||
|
private String glossaryCollection;
|
||||||
|
|
||||||
private String draftStatus;
|
private String draftStatus;
|
||||||
private String statusBarText;
|
private String statusBarText;
|
||||||
@@ -374,7 +375,9 @@ public class PDFBuilder {
|
|||||||
transformer.setParameter("double.sided", doubleSided);
|
transformer.setParameter("double.sided", doubleSided);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(null != glossaryCollection){
|
||||||
|
transformer.setParameter("glossary.collection", glossaryCollection);
|
||||||
|
}
|
||||||
if(null != sectionAutolabel){
|
if(null != sectionAutolabel){
|
||||||
transformer.setParameter("section.autolabel", sectionAutolabel);
|
transformer.setParameter("section.autolabel", sectionAutolabel);
|
||||||
}
|
}
|
||||||
@@ -696,6 +699,15 @@ public class PDFBuilder {
|
|||||||
this.sectionAutolabel = sectionAutolabel;
|
this.sectionAutolabel = sectionAutolabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getGlossaryCollection() {
|
||||||
|
return glossaryCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGlossaryCollection(String glossaryCollection) {
|
||||||
|
this.glossaryCollection = glossaryCollection;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public String getSectionLabelIncludesComponentLabel() {
|
public String getSectionLabelIncludesComponentLabel() {
|
||||||
return sectionLabelIncludesComponentLabel;
|
return sectionLabelIncludesComponentLabel;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user