Skip to content

Commit

Permalink
Removed System property configuration from XGenerateStarter to solve …
Browse files Browse the repository at this point in the history
…issues when using jar with dependencies.
  • Loading branch information
harmen-xb committed Nov 27, 2024
1 parent da0dddd commit 0817e8c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,7 @@ else if (fileLogLevel != null) {
*/
private void startGenerator(XGenAppConfig appConfig, ArrayList<ModelTemplateConfigCombination> modelTemplateConfigCombinations, boolean debugMode) {
try
{
// Configure Java XML to use Saxon as the DOM and XPath implementation.
System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "net.sf.saxon.om.DocumentBuilderFactoryImpl");
System.setProperty("javax.xml.xpath.XPathFactory", "net.sf.saxon.xpath.XPathFactoryImpl");

{
// Notify the generation observers the generation is starting.
this.notifyGenerationStarting(modelTemplateConfigCombinations.size(), LocalDateTime.now());
Generator generator = new Generator();
Expand Down

0 comments on commit 0817e8c

Please sign in to comment.