Skip to content

Commit

Permalink
Issue #4: GEMSTONE is defined by defineCustomEnvVars in stones spec .…
Browse files Browse the repository at this point in the history
….. remove from scripts and make sure the spots where GEMSTONE is needed are covered
  • Loading branch information
dalehenrich committed Jun 1, 2023
1 parent 21b5dbc commit 1f26802
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions bin/deleteStone.solo
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ doit
ifTrue: [ self error: 'Expected a positional argument: <stone-name>' ].
stoneName := self positionalArgs at: 1.
stoneSpec := stonesRegistry stoneNamed: stoneName.
System gemEnvironmentVariable: 'GEMSTONE' put: stoneSpec gemstonePath.
stonesRegistry destroyStoneStructureFor: stoneName.
^ stonesRegistry
^ self noResult
%
1 change: 0 additions & 1 deletion bin/startStone.solo
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ doit
ifNil: [ self error: '--registry option must be specified when <stone-name> is specified' ].
stonesRegistry := registryClass stonesRegistryNamed: self registry.
stoneSpec := stonesRegistry stoneNamed: stoneName ].
System gemEnvironmentVariable: 'GEMSTONE' put: stoneSpec gemstonePath.
stoneSpec startStone: self withSuperDoitOptions: true.
self wait
ifNotNil: [:waitTime |
Expand Down
1 change: 0 additions & 1 deletion bin/stopStone.solo
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ doit
ifNil: [ self error: '--registry option must be specified when <stone-name> is specified' ].
stonesRegistry := registryClass stonesRegistryNamed: self registry.
stoneSpec := stonesRegistry stoneNamed: stoneName ].
System gemEnvironmentVariable: 'GEMSTONE' put: stoneSpec gemstonePath.
stoneSpec stopStone: self withSuperDoitOptions: true.
^ self noResult
%
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ startStone: superDoitScriptOrNil withSuperDoitOptions: superDoitOptionsBoolean
'====== ' , scriptPath , ' starting stone at ' , DateAndTime now printString;
lf;
lf.
self defineCustomEnvVars.
stoneLogFile := (self rootDir / self stoneDirectorySpec logs / self stoneName
, 'log') pathString.
self defineCustomEnvVars.
[
arrayOfOutputs := (Rowan globalNamed: 'GsStartStone')
startStone: self stoneName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ stopStone: superDoitScriptOrNil withSuperDoitOptions: superDoitOptionsBoolean
lf;
lf.
exitStatus := 0.
self defineCustomEnvVars.
[
arrayOfOutputs := (Rowan globalNamed: 'GsStopStone')
stopStone: self stoneName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ waitStone: timeout

| exitStatus |
exitStatus := 0.
self defineCustomEnvVars.
[
(Rowan globalNamed: 'GsWaitStone')
waitForStoneName: self stoneName
Expand Down

0 comments on commit 1f26802

Please sign in to comment.