diff --git a/src/main/groovy/io/openliberty/tools/gradle/tasks/GenerateFeaturesTask.groovy b/src/main/groovy/io/openliberty/tools/gradle/tasks/GenerateFeaturesTask.groovy index 36a22518d..3f54816d0 100644 --- a/src/main/groovy/io/openliberty/tools/gradle/tasks/GenerateFeaturesTask.groovy +++ b/src/main/groovy/io/openliberty/tools/gradle/tasks/GenerateFeaturesTask.groovy @@ -204,12 +204,12 @@ class GenerateFeaturesTask extends AbstractFeatureTask { configDocument.createFeature(missing); } // Generate log message before writing file as the file change event kicks off other dev mode actions - logger.lifecycle("Generated the following features: " + missingLibertyFeatures); + logger.lifecycle("Generated the features " + missingLibertyFeatures + " in the file " + newServerXmlSrc.getAbsolutePath()); // use logger.lifecycle so that message appears without --info tag on configDocument.writeXMLDocument(newServerXmlSrc); logger.debug("Created file " + newServerXmlSrc); } else { - logger.lifecycle("Regenerated the following features: " + missingLibertyFeatures); + logger.lifecycle("Generated the features " + missingLibertyFeatures + " and confirmed they exist in the file: " + newServerXmlSrc.getAbsolutePath()); // use logger.lifecycle so that message appears without --info tag on } } else { diff --git a/src/test/groovy/io/openliberty/tools/gradle/BaseDevTest.groovy b/src/test/groovy/io/openliberty/tools/gradle/BaseDevTest.groovy index 597c895a1..9171f44c3 100644 --- a/src/test/groovy/io/openliberty/tools/gradle/BaseDevTest.groovy +++ b/src/test/groovy/io/openliberty/tools/gradle/BaseDevTest.groovy @@ -30,8 +30,8 @@ class BaseDevTest extends AbstractIntegrationTest { static String buildFilename = "build.gradle"; final String RUNNING_INSTALL_FEATURE = "Task :installFeature"; final String RUNNING_GENERATE_FEATURES = "Task :generateFeatures"; - final String REGENERATE_FEATURES = "Regenerated the following features:"; - final String GENERATE_FEATURES = "Generated the following features:"; + final String REGENERATE_FEATURES = "and confirmed they exist in the file: "; + final String GENERATE_FEATURES = " in the file "; final String GENERATED_FEATURES_FILE_NAME = "generated-features.xml"; final String SERVER_XML_COMMENT = "Plugin has generated Liberty features"; // the explanation added to server.xml final String NEW_FILE_INFO_MESSAGE = "This file was generated by the Liberty Gradle Plugin and will be overwritten"; // the explanation added to the generated features file