Merge "support the glossaryCollection parameter in autopdf."

This commit is contained in:
Jenkins
2014-01-22 19:41:15 +00:00
committed by Gerrit Code Review
2 changed files with 15 additions and 2 deletions

View File

@@ -915,6 +915,7 @@ public abstract class WebHelpMojo extends AbstractWebhelpMojo {
pdfBuilder.setGenerateToc(getProperty("generateToc"));
pdfBuilder.setTocMaxDepth(getProperty("tocMaxDepth"));
pdfBuilder.setTocSectionDepth(getProperty("tocSectionDepth"));
pdfBuilder.setGlossaryCollection(getProperty("glossaryCollection"));
File srcFilename = new File(this.projectBuildDirectory, "docbkx/"+sourceFile.getName());
if(srcFilename.exists()) {

View File

@@ -122,7 +122,8 @@ public class PDFBuilder {
private String generateToc;
private String tocMaxDepth;
private String tocSectionDepth;
private String glossaryCollection;
private String draftStatus;
private String statusBarText;
private String trimWadlUriCount;
@@ -374,7 +375,9 @@ public class PDFBuilder {
transformer.setParameter("double.sided", doubleSided);
}
if(null != glossaryCollection){
transformer.setParameter("glossary.collection", glossaryCollection);
}
if(null != sectionAutolabel){
transformer.setParameter("section.autolabel", sectionAutolabel);
}
@@ -696,6 +699,15 @@ public class PDFBuilder {
this.sectionAutolabel = sectionAutolabel;
}
public String getGlossaryCollection() {
return glossaryCollection;
}
public void setGlossaryCollection(String glossaryCollection) {
this.glossaryCollection = glossaryCollection;
}
public String getSectionLabelIncludesComponentLabel() {
return sectionLabelIncludesComponentLabel;
}