Skip to content

Commit

Permalink
fijiUpdate: add a configuration flag for skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Apr 18, 2024
1 parent 5f7aa8b commit f0fdb8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildSrc/src/main/kotlin/sciview/fiji.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ private fun checksum() {
private fun update() {
validateFijiDir()

val skip = project.properties["fijiUpdateSkip"]?.toString()?.toBoolean() ?: false
if (skip) {
logger.lifecycle("Skipping Fiji update due to fijiUpdateSkip=true")
return
}

try {
runUpdater("add-update-site", updateSite, updateSiteURL)
runUpdater("update")
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ fijiTestClass=sc.iview.commands.help.About
# then be separated by | characters. [GIT_HASH] will be replaced with the current Git hash of the project,
# or by the value given in the gitHash property. [VERSION_NUMBER] will be replaced by project.version.
fijiTestClassExpectedOutput=[INFO] SciView was created by Kyle Harrington|[GIT_HASH]|[VERSION_NUMBER]
# Uncomment the next line if you want the fijiUpdate task to be skipped. This is useful if you plan to repeatedly run fijiPopulate without checking for remote updates every time.
#fijiUpdateSkip=true
# Uncomment the next line if you want the fijiUpload task to *simulate* an upload rather than actually doing it.
#fijiUploadDryRun=true

0 comments on commit f0fdb8c

Please sign in to comment.