Skip to content

Commit

Permalink
Ensure create server updates plugin config xml after copying config f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
cherylking committed Feb 13, 2024
1 parent 80fea34 commit 1ce4996
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ private void doDeploy() throws IOException, MojoExecutionException, TransformerE

// update target server configuration
copyConfigFiles();
exportParametersToXml();

boolean installDependencies = false;
boolean installProject = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ protected String getDeployPackages() {
return deployPackages;
}

/**
* @throws IOException
* @throws MojoExecutionException
*/
@Override
protected void copyConfigFiles() throws IOException, MojoExecutionException {
try {
super.copyConfigFiles();
exportParametersToXml();
} catch (IOException | ParserConfigurationException | TransformerException e) {
throw new MojoExecutionException("Error copying configuration files to Liberty server directory.", e);
}
}

/*
* Export plugin configuration parameters to
* target/liberty-plugin-config.xml
Expand Down

0 comments on commit 1ce4996

Please sign in to comment.