Creating a document specification through the Java API

Before creating a document specification, perform a IBM Engineering Lifecycle Optimization Publishing API initialization. For more information, see Initializing and preparing the Java API.
Note: When a document specification is created, all output formats are selected automatically.
DocumentSpecificationBuilder builder = new DocumentSpecificationBuilder();
URI configURI = new File( AppUtils.getConfigFilePath()).toURI();
RPEDocumentSpecification docSpec = builder.create(configURI.toString());