Make it possible to pass in statusBarText from
pom or command line.
This commit is contained in:
@@ -118,6 +118,7 @@ public class PDFBuilder {
|
||||
private String tocSectionDepth;
|
||||
|
||||
private String draftStatus;
|
||||
private String statusBarText;
|
||||
private String trimWadlUriCount;
|
||||
private String computeWadlPathFromDocbookPath;
|
||||
|
||||
@@ -384,6 +385,12 @@ public class PDFBuilder {
|
||||
}
|
||||
transformer.setParameter("draft.status", draftStatus);
|
||||
|
||||
String sysStatusBarText=System.getProperty("statusBarText");
|
||||
if(null!=sysStatusBarText && !sysStatusBarText.isEmpty()){
|
||||
statusBarText=sysStatusBarText;
|
||||
}
|
||||
transformer.setParameter("status.bar.text", statusBarText);
|
||||
|
||||
if(trimWadlUriCount != null){
|
||||
transformer.setParameter("trim.wadl.uri.count",trimWadlUriCount);
|
||||
}
|
||||
@@ -660,6 +667,15 @@ public class PDFBuilder {
|
||||
this.draftStatus = draftStatus;
|
||||
}
|
||||
|
||||
public String getStatusBarText() {
|
||||
return statusBarText;
|
||||
}
|
||||
|
||||
public void setStatusBarText(String statusBarText) {
|
||||
this.statusBarText = statusBarText;
|
||||
}
|
||||
|
||||
|
||||
public String getTrimWadlUriCount() {
|
||||
return trimWadlUriCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user