Skip to content

Commit

Permalink
clean up, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylking committed Feb 15, 2024
1 parent 18e76a0 commit 5700316
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion liberty-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
</profiles>
<streamLogsOnFailures>true</streamLogsOnFailures>
<mavenOpts>-Dfile.encoding=UTF-8</mavenOpts>
<!--postBuildHookScript>cleanTest</postBuildHookScript-->
<postBuildHookScript>cleanTest</postBuildHookScript>
</configuration>
<executions>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void checkMessagesLogForIncludes() throws Exception {

//Check app name/appsDir resolved correctly during create, deploy, and start
Assert.assertTrue("Found duplicate application message in console output", duplicateMatches.size() == 0);
Assert.assertEquals("appsDirMessage size: " + appDirMatches.size(), 3, appDirMatches.size()); // once for each goal
Assert.assertEquals("appsDirMessage size: " + appDirMatches.size(), 3, appDirMatches.size()); // once for each goal - create, deploy and start
Assert.assertTrue("Did not find app install message in console output", appInstalledMatches.size() == 1);

String appMessage = appInstalledMatches.get(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1992,7 +1992,12 @@ protected void runLibertyMojoCreate() throws MojoExecutionException {
if (installDirectory != null) {
try {
File installDirectoryCanonicalFile = installDirectory.getCanonicalFile();
// Quick check to see if a Liberty installation exists at the installDirectory
// Quick check to see if a Liberty installation exists at the installDirectory CLK999
// Do not mark this as a non-new installation if the installDirectory is different than
// the previous one listed in liberty-plugin-config.xml? But the only way it already exists
// and is different is if it is an external installation, which should then be managed outside
// of the plugin goals as far as feature installation goes. So perhaps we leave it be, but
// print a log message to indicate we detected a change in install directory location?
File file = new File(installDirectoryCanonicalFile, "lib/ws-launch.jar");
if (file.exists()) {
this.isNewInstallation = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ protected String getDeployPackages() {
}

/**
* Overriding this method to add the export of the parameters to the xml file. This method will get called for the
* following goals: create, deploy, run and dev
* @throws IOException
* @throws MojoExecutionException
*/
Expand Down

0 comments on commit 5700316

Please sign in to comment.