Skip to content

Commit

Permalink
Issue #321: copy GsDevKit-Core packages to their new home and adjust …
Browse files Browse the repository at this point in the history
…scripts so they are loaded into solo scripts that need them ...
  • Loading branch information
dalehenrich committed Aug 17, 2021
1 parent e5aa151 commit 288af99
Show file tree
Hide file tree
Showing 9 changed files with 126 additions and 10 deletions.
26 changes: 22 additions & 4 deletions shared/gemstone/bin/restartnetldi
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ EXAMPLES
$basename myStoneName
-----
%
projectshome
$GS_HOME/shared/gemstone/repos
%
specs
[
RwLoadSpecificationV2 {
#specName : 'GsDevKit_SuperDoit',
#projectName : 'GsDevKit_SuperDoit',
#diskUrl : 'file:$GS_HOME/shared/gemstone/repos/GsDevKit_SuperDoit',
#projectSpecFile : 'rowan/project.ston',
#componentNames : [
'GsDevKit'
],
#comment : 'loads GsDevKit support code in support of GsDevKit_home superDoit scripts'
}
]
%
method
restartNetldi
"If GemStone version if >= 3.3 netldi supports restarting with -r.
Expand Down Expand Up @@ -86,7 +103,7 @@ sessionDescriptionFor: aStoneName ifAbsent: absentBlock
sessionDescriptionReference := self sessionDescriptionHome / aStoneName.
sessionDescriptionReference exists
ifFalse: [ ^ absentBlock value: sessionDescriptionReference ].
^ TDSessionDescription importFrom: sessionDescriptionReference pathString
^ (self globalNamed: 'TDSessionDescription') importFrom: sessionDescriptionReference pathString
%
method
sessionDescriptionHome
Expand Down Expand Up @@ -114,7 +131,7 @@ gs_stoneDirectory
%
method
stoneInfoClass
^ GsDevKitStoneInfo
^ (self globalNamed: 'GsDevKitStoneInfo')
%
method
stoneInfoFilename
Expand Down Expand Up @@ -144,6 +161,7 @@ doit
withStatus: 1 "does not return" ].
%
doit
self restartNetldi.
^ self noResult
self preDoitSpecLoad. "load the GsDevKit_SuperDoit project from spec"
self restartNetldi.
^ self noResult
%
21 changes: 19 additions & 2 deletions shared/gemstone/bin/startnetldi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,23 @@ EXAMPLES
$basename -g myStoneName -A
-----
%
projectshome
$GS_HOME/shared/gemstone/repos
%
specs
[
RwLoadSpecificationV2 {
#specName : 'GsDevKit_SuperDoit',
#projectName : 'GsDevKit_SuperDoit',
#diskUrl : 'file:$GS_HOME/shared/gemstone/repos/GsDevKit_SuperDoit',
#projectSpecFile : 'rowan/project.ston',
#componentNames : [
'GsDevKit'
],
#comment : 'loads GsDevKit support code in support of GsDevKit_home superDoit scripts'
}
]
%
method
startNetldi
| netldiArgs result |
Expand Down Expand Up @@ -107,7 +124,7 @@ sessionDescriptionFor: aStoneName ifAbsent: absentBlock
sessionDescriptionReference := self sessionDescriptionHome / aStoneName.
sessionDescriptionReference exists
ifFalse: [ ^ absentBlock value: sessionDescriptionReference ].
^ TDSessionDescription importFrom: sessionDescriptionReference pathString
^ (self globalNamed: 'TDSessionDescription') importFrom: sessionDescriptionReference pathString
%
method
sessionDescriptionHome
Expand All @@ -131,7 +148,7 @@ gs_stoneDirectory
%
method
stoneInfoClass
^ GsDevKitStoneInfo
^ (self globalNamed: 'GsDevKitStoneInfo')
%
method
stoneInfoFilename
Expand Down
19 changes: 18 additions & 1 deletion shared/gemstone/bin/startstone
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,23 @@ EXAMPLES
$basename -w myStoneName
-----
%
projectshome
$GS_HOME/shared/gemstone/repos
%
specs
[
RwLoadSpecificationV2 {
#specName : 'GsDevKit_SuperDoit',
#projectName : 'GsDevKit_SuperDoit',
#diskUrl : 'file:$GS_HOME/shared/gemstone/repos/GsDevKit_SuperDoit',
#projectSpecFile : 'rowan/project.ston',
#componentNames : [
'GsDevKit'
],
#comment : 'loads GsDevKit support code in support of GsDevKit_home superDoit scripts'
}
]
%
method
startStone
| result |
Expand Down Expand Up @@ -79,7 +96,7 @@ gs_stoneDirectory
%
method
stoneInfoClass
^ GsDevKitStoneInfo
^ (self globalNamed: 'GsDevKitStoneInfo')
%
method
stoneInfoFilename
Expand Down
21 changes: 19 additions & 2 deletions shared/gemstone/bin/stopnetldi
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ EXAMPLES
$basename myStoneName
-----
%
projectshome
$GS_HOME/shared/gemstone/repos
%
specs
[
RwLoadSpecificationV2 {
#specName : 'GsDevKit_SuperDoit',
#projectName : 'GsDevKit_SuperDoit',
#diskUrl : 'file:$GS_HOME/shared/gemstone/repos/GsDevKit_SuperDoit',
#projectSpecFile : 'rowan/project.ston',
#componentNames : [
'GsDevKit'
],
#comment : 'loads GsDevKit support code in support of GsDevKit_home superDoit scripts'
}
]
%
method
stopNetldi
| sess stoneInfo netldiArgs result |
Expand Down Expand Up @@ -54,7 +71,7 @@ sessionDescriptionFor: aStoneName ifAbsent: absentBlock
sessionDescriptionReference := self sessionDescriptionHome / aStoneName.
sessionDescriptionReference exists
ifFalse: [ ^ absentBlock value: sessionDescriptionReference ].
^ TDSessionDescription importFrom: sessionDescriptionReference pathString
^ (self globalNamed: 'TDSessionDescription') importFrom: sessionDescriptionReference pathString
%
method
sessionDescriptionHome
Expand All @@ -74,7 +91,7 @@ gs_stoneDirectory
%
method
stoneInfoClass
^ GsDevKitStoneInfo
^ (self globalNamed: 'GsDevKitStoneInfo')
%
method
stoneInfoFilename
Expand Down
19 changes: 18 additions & 1 deletion shared/gemstone/bin/stopstone
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ EXAMPLES
$basename -b myStoneName
-----
%
projectshome
$GS_HOME/shared/gemstone/repos
%
specs
[
RwLoadSpecificationV2 {
#specName : 'GsDevKit_SuperDoit',
#projectName : 'GsDevKit_SuperDoit',
#diskUrl : 'file:$GS_HOME/shared/gemstone/repos/GsDevKit_SuperDoit',
#projectSpecFile : 'rowan/project.ston',
#componentNames : [
'GsDevKit'
],
#comment : 'loads GsDevKit support code in support of GsDevKit_home superDoit scripts'
}
]
%
method
stopStone
| result |
Expand Down Expand Up @@ -77,7 +94,7 @@ stoneName
%
method
stoneInfoClass
^ GsDevKitStoneInfo
^ (self globalNamed: 'GsDevKitStoneInfo')
%
method
stoneInfoFilename
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RwSimpleProjectLoadComponentV2 {
#name : 'GsDevKit',
#condition : 'common',
#projectNames : [ ],
#componentNames : [ ],
#packageNames : [
'GsDevKit-Core'
],
#comment : ''
}
10 changes: 10 additions & 0 deletions shared/gemstone/repos/GsDevKit_SuperDoit/rowan/project.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RwProjectSpecificationV2 {
#specName : 'project',
#projectSpecPath : 'rowan',
#componentsPath : 'rowan/components',
#packagesPath : 'rowan/src',
#projectsPath : 'rowan/projects',
#specsPath : 'rowan/specs',
#packageFormat : 'filetree',
#comment : ''
}
Empty file.
10 changes: 10 additions & 0 deletions shared/gemstone/repos/GsDevKit_SuperDoit/rowan/specs/GsDevKit.ston
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RwLoadSpecificationV2 {
#specName : 'GsDevKit_SuperDoit',
#projectName : 'GsDevKit_SuperDoit',
#diskUrl : 'file:$GS_HOME/shared/gemstone/repos/GsDevKit_SuperDoit',
#projectSpecFile : 'rowan/project.ston',
#componentNames : [
'GsDevKit'
],
#comment : 'loads GsDevKit support code in support of GsDevKit_home superDoit scripts'
}

0 comments on commit 288af99

Please sign in to comment.