Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylking committed Feb 21, 2024
1 parent 9866ab3 commit 3fc2661
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/main/groovy/io/openliberty/tools/gradle/tasks/DevTask.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -704,52 +704,51 @@ class DevTask extends AbstractFeatureTask {
// liberty extension: installDir, baseDir, cacheDir, outputDir, userDir, runtime
// libertyRuntime dependency
// liberty->install block: type, runtimeUrl, version, useOpenLiberty
boolean foundChange = false
if (newProject.liberty.installDir != oldProject.liberty.installDir) {
logger.debug('liberty.installDir changed')
foundChange = true
return true
}
if (newProject.liberty.baseDir != oldProject.liberty.baseDir) {
logger.debug('liberty.baseDir changed')
foundChange = true
return true
}
if (newProject.liberty.cacheDir != oldProject.liberty.cacheDir) {
logger.debug('liberty.cacheDir changed')
foundChange = true
return true
}
if (newProject.liberty.outputDir != oldProject.liberty.outputDir) {
logger.debug('liberty.outputDir changed')
foundChange = true
return true
}
if (newProject.liberty.userDir != oldProject.liberty.userDir) {
logger.debug('liberty.userDir changed')
foundChange = true
return true
}
if (newProject.liberty.install.type != oldProject.liberty.install.type) {
logger.debug('liberty.install.type changed')
foundChange = true
return true
}
if (newProject.liberty.install.runtimeUrl != oldProject.liberty.install.runtimeUrl) {
logger.debug('liberty.install.runtimeUrl changed')
foundChange = true
return true
}
if (newProject.liberty.install.version != oldProject.liberty.install.version) {
logger.debug('liberty.install.version changed')
foundChange = true
return true
}
if (newProject.liberty.install.useOpenLiberty != oldProject.liberty.install.useOpenLiberty) {
logger.debug('liberty.install.useOpenLiberty changed')
foundChange = true
return true
}
if (newProject.liberty.runtime != oldProject.liberty.runtime) {
logger.debug('liberty.runtime changed')
foundChange = true
return true
}
if (newProject.configurations.libertyRuntime != oldProject.configurations.libertyRuntime) {
logger.debug('libertyRuntime changed')
foundChange = true
return true
}
return foundChange
return false
}

private boolean hasServerConfigBootstrapPropertiesChanged(Project newProject, Project oldProject) {
Expand Down

0 comments on commit 3fc2661

Please sign in to comment.