Skip to content

Commit

Permalink
Revert "Consistently use doLast (#975)"
Browse files Browse the repository at this point in the history
This reverts commit 8321ee3.
  • Loading branch information
wmdietl committed Nov 13, 2024
1 parent 8321ee3 commit f870a31
Showing 1 changed file with 12 additions and 24 deletions.
36 changes: 12 additions & 24 deletions checker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -283,26 +283,18 @@ checkCompilerMessages {
}
}

task nullnessExtraTests(dependsOn: assembleForJavac, group: 'Verification') {
task nullnessExtraTests(type: Exec, dependsOn: assembleForJavac, group: 'Verification') {
description 'Run extra tests for the Nullness Checker.'
doLast{
exec{
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck", JAVAP: 'javap'
args = ['-C', 'tests/nullness-extra/']
}
}
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck", JAVAP: 'javap'
args = ['-C', 'tests/nullness-extra/']
}

task commandLineTests(dependsOn: assembleForJavac, group: 'Verification') {
task commandLineTests(type: Exec, dependsOn: assembleForJavac, group: 'Verification') {
description 'Run tests that need a special command line.'
doLast {
exec {
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck"
args = ['-C', 'tests/command-line/']
}
}
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck"
args = ['-C', 'tests/command-line/']
}

task tutorialTests(dependsOn: assembleForJavac, group: 'Verification') {
Expand All @@ -314,15 +306,11 @@ task tutorialTests(dependsOn: assembleForJavac, group: 'Verification') {
}
}

task exampleTests(dependsOn: assembleForJavac, group: 'Verification') {
task exampleTests(type: Exec, dependsOn: assembleForJavac, group: 'Verification') {
description 'Run tests for the example programs.'
doLast{
exec{
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck"
args = ['-C', '../docs/examples']
}
}
executable 'make'
environment JAVAC: "${projectDir}/bin/javac -AnoJreVersionCheck"
args = ['-C', '../docs/examples']
}

task demosTests(dependsOn: assembleForJavac, group: 'Verification') {
Expand Down

0 comments on commit f870a31

Please sign in to comment.