Skip to content

Commit 00c852d

Browse files
authored
Merge pull request #874 from cherylking/removeWarning
Change warnings to info or debug
2 parents 64cc0e6 + d8abab3 commit 00c852d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/groovy/io/openliberty/tools/gradle/tasks/AbstractServerTask.groovy

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,19 +299,19 @@ abstract class AbstractServerTask extends AbstractLibertyTask {
299299
if (optionsFile.exists() && jvmOptionsPath == null) {
300300
// if using pre-existing installation, do not delete file
301301
if (project.liberty.installDir == null) {
302-
logger.warn(optionsFile.getCanonicalPath() + " file deleted before processing plugin configuration.")
302+
logger.info(optionsFile.getCanonicalPath() + " file deleted before processing plugin configuration.")
303303
optionsFile.delete();
304304
}
305305
}
306306
if((server.jvmOptions != null && !server.jvmOptions.isEmpty()) || !jvmProjectProps.isEmpty()){
307307
if (jvmOptionsPath != null) {
308-
logger.warn("The " + jvmOptionsPath + " file is overwritten by inlined configuration.")
308+
logger.info("The " + jvmOptionsPath + " file is overwritten by inlined configuration.")
309309
}
310310
writeJvmOptions(optionsFile, server.jvmOptions, jvmProjectProps)
311311
jvmOptionsPath = "inlined configuration"
312312
} else if (server.jvmOptionsFile != null && server.jvmOptionsFile.exists()) {
313313
if (jvmOptionsPath != null) {
314-
logger.warn("The " + jvmOptionsPath + " file is overwritten by the " + server.jvmOptionsFile.getCanonicalPath() + " file.");
314+
logger.info("The " + jvmOptionsPath + " file is overwritten by the " + server.jvmOptionsFile.getCanonicalPath() + " file.");
315315
}
316316
Files.copy(server.jvmOptionsFile.toPath(), optionsFile.toPath(), StandardCopyOption.REPLACE_EXISTING)
317317
jvmOptionsPath = server.jvmOptionsFile.getCanonicalPath()
@@ -323,19 +323,19 @@ abstract class AbstractServerTask extends AbstractLibertyTask {
323323
if (bootstrapFile.exists() && bootStrapPropertiesPath == null) {
324324
// if using pre-existing installation, do not delete file
325325
if (project.liberty.installDir == null) {
326-
logger.warn(bootstrapFile.getCanonicalPath() + " file deleted before processing plugin configuration.")
326+
logger.info(bootstrapFile.getCanonicalPath() + " file deleted before processing plugin configuration.")
327327
bootstrapFile.delete();
328328
}
329329
}
330330
if((server.bootstrapProperties != null && !server.bootstrapProperties.isEmpty()) || !bootstrapProjectProps.isEmpty()){
331331
if (bootStrapPropertiesPath != null) {
332-
logger.warn("The " + bootStrapPropertiesPath + " file is overwritten by inlined configuration.")
332+
logger.info("The " + bootStrapPropertiesPath + " file is overwritten by inlined configuration.")
333333
}
334334
writeBootstrapProperties(bootstrapFile, server.bootstrapProperties, bootstrapProjectProps)
335335
bootStrapPropertiesPath = "inlined configuration"
336336
} else if (server.bootstrapPropertiesFile != null && server.bootstrapPropertiesFile.exists()) {
337337
if (bootStrapPropertiesPath != null) {
338-
logger.warn("The " + bootStrapPropertiesPath + " file is overwritten by the " + server.bootstrapPropertiesFile.getCanonicalPath() + " file.")
338+
logger.info("The " + bootStrapPropertiesPath + " file is overwritten by the " + server.bootstrapPropertiesFile.getCanonicalPath() + " file.")
339339
}
340340
Files.copy(server.bootstrapPropertiesFile.toPath(), bootstrapFile.toPath(), StandardCopyOption.REPLACE_EXISTING)
341341
bootStrapPropertiesPath = server.bootstrapPropertiesFile.getCanonicalPath()
@@ -347,7 +347,7 @@ abstract class AbstractServerTask extends AbstractLibertyTask {
347347
// generate a config file on the server with any Liberty configuration variables specified via project properties
348348
File pluginVariableConfig = new File(serverDirectory, PLUGIN_VARIABLE_CONFIG_OVERRIDES_XML)
349349
if (pluginVariableConfig.exists()) {
350-
logger.warn(pluginVariableConfig.getCanonicalPath() + " file deleted before processing plugin configuration.")
350+
logger.debug(pluginVariableConfig.getCanonicalPath() + " file deleted before processing plugin configuration.")
351351
pluginVariableConfig.delete();
352352
}
353353
if ((server.var != null && !server.var.isEmpty()) || !varProjectProps.isEmpty()) {
@@ -358,7 +358,7 @@ abstract class AbstractServerTask extends AbstractLibertyTask {
358358
// generate a config file on the server with any Liberty configuration default variables specified via project properties
359359
pluginVariableConfig = new File(serverDirectory, PLUGIN_VARIABLE_CONFIG_DEFAULTS_XML)
360360
if (pluginVariableConfig.exists()) {
361-
logger.warn(pluginVariableConfig.getCanonicalPath() + " file deleted before processing plugin configuration.")
361+
logger.debug(pluginVariableConfig.getCanonicalPath() + " file deleted before processing plugin configuration.")
362362
pluginVariableConfig.delete();
363363
}
364364
if ((server.defaultVar != null && !server.defaultVar.isEmpty()) || !defaultVarProjectProps.isEmpty()) {

0 commit comments

Comments
 (0)