Commit 13231ff
committed
ScriptInfo: improve behavior of script identifiers
Script IDs are now of the form "script:${name}" for named scripts,
"script:${path}" for unnamed scripts with a file path given, and
"script:<${hex}>" where "${hex}" is a hexidecimal hash code of the
script contents when it has neither name nor path.
In this way, script IDs should hopefully always be unique, except
in the case where they are intended to collide -- e.g., to
dynamically replace one version of a script with another.1 parent b060732 commit 13231ff
File tree
2 files changed
+44
-1
lines changed- src
- main/java/org/scijava/script
- test/java/org/scijava/script
2 files changed
+44
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
363 | 368 | | |
364 | 369 | | |
365 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
98 | 127 | | |
99 | 128 | | |
100 | 129 | | |
| |||
323 | 352 | | |
324 | 353 | | |
325 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
326 | 364 | | |
327 | 365 | | |
328 | 366 | | |
| |||
0 commit comments