Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd authored Jan 16, 2023
1 parent c96c038 commit 2bb5797
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions org.lflang/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ configurations {
task getSubmoduleVersions(type: Exec) {
description('Run a Git command to get the current status of submodules')
workingDir project.rootDir
// This will make gradle execute git submodule status every time updateRustRuntime is called
outputs.upToDateWhen { false }

def command = "git submodule status"
Expand Down Expand Up @@ -107,6 +108,7 @@ task updateRustRuntime {
description('Record the VCS revisions of the language runtimes into a properties file available at runtime.')

dependsOn getSubmoduleVersions
// If the output of the git submodule status did not change (the getSubmoduleVersions task), then this task is considered up to date.
inputs.files(getSubmoduleVersions.outputs)
ext.outputFile = file("$project.projectDir/src/lib/rs/runtime-version.properties")
outputs.file(outputFile)
Expand Down

0 comments on commit 2bb5797

Please # to comment.