Skip to content

Commit

Permalink
Remove unneccesary dir check during Gradle webui tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
scroix committed Mar 29, 2024
1 parent 1a766c2 commit 027a129
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions nodel-webui-js/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -126,23 +126,8 @@ tasks.register('gruntRun', NpxTask) {
onlyIf { shouldInstall }
}

tasks.register('checkDistDirectory', Task) {
dependsOn gruntRun
doLast {
def distDir = file("${project.buildDir}/dist")
if (distDir.exists()) {
println "Contents of 'dist' directory:"
distDir.eachFile { file ->
println file.name
}
} else {
println "'dist' directory does not exist"
}
}
}

tasks.register('copyContent', Copy) {
dependsOn gruntRun, checkDistDirectory
dependsOn gruntRun
from file("${project.buildDir}/grunt")
into file("${project.buildDir}/www-content_stage")
exclude 'build.json'
Expand Down

0 comments on commit 027a129

Please sign in to comment.