Skip to content

Commit

Permalink
Split Rowan scripts into 2 variants: deployment and development
Browse files Browse the repository at this point in the history
  • Loading branch information
ytsejam78 committed Nov 24, 2023
1 parent d2b6456 commit 7ebc51f
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 14 deletions.
10 changes: 5 additions & 5 deletions rowan/components/Deployment.ston
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
RwSimpleProjectLoadComponentV2 {
#name : 'Deployment',
#preloadDoitName : 'scripts/preLoad',
#postloadDoitName : 'scripts/postLoad',
#preloadDoitName : 'scripts/deploymentPreLoad',
#postloadDoitName : 'scripts/deploymentPostLoad',
#projectNames : [ 'Chalten' ],
#componentNames : [ ],
#packageNames : [
Expand All @@ -13,9 +13,9 @@ RwSimpleProjectLoadComponentV2 {
'gemstone' : {
'allusers' : {
#packageNameToPlatformPropertiesMap : {
'Kepler-Notifications' : { 'symbolDictName' : 'KeplerCore' },
'Kepler-System' : { 'symbolDictName' : 'KeplerCore' },
'Kepler-Time' : { 'symbolDictName' : 'KeplerCore' }
'Kepler-Notifications' : { 'symbolDictName' : 'Kepler' },
'Kepler-System' : { 'symbolDictName' : 'Kepler' },
'Kepler-Time' : { 'symbolDictName' : 'Kepler' }
}
}
}
Expand Down
10 changes: 6 additions & 4 deletions rowan/components/Tests.ston
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
RwSimpleProjectLoadComponentV2 {
#name : 'Tests',
#preloadDoitName : 'scripts/developmentPreLoad',
#postloadDoitName : 'scripts/developmentPostLoad',
#condition : 'tests',
#componentNames : [
'Deployment'
Expand All @@ -14,10 +16,10 @@ RwSimpleProjectLoadComponentV2 {
'gemstone' : {
'allusers' : {
#packageNameToPlatformPropertiesMap : {
'Kepler-Notifications-Tests' : { 'symbolDictName' : 'KeplerCore' },
'Kepler-SUnit-Model' : { 'symbolDictName' : 'KeplerCore' },
'Kepler-System-Tests' : { 'symbolDictName' : 'KeplerCore' },
'Kepler-Time-Tests' : { 'symbolDictName' : 'KeplerCore' }
'Kepler-Notifications-Tests' : { 'symbolDictName' : 'Kepler' },
'Kepler-SUnit-Model' : { 'symbolDictName' : 'Kepler' },
'Kepler-System-Tests' : { 'symbolDictName' : 'Kepler' },
'Kepler-Time-Tests' : { 'symbolDictName' : 'Kepler' }
}
}
}
Expand Down
16 changes: 16 additions & 0 deletions rowan/components/scripts/deploymentPostLoad.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
| symbolDictionary |

symbolDictionary := Rowan image
symbolDictNamed: 'Kepler'
ifAbsent: [Error signal: 'Kepler symbol dictionary missing' ].

"Global variables definition"
symbolDictionary at: #SystemInterfaces put: Namespace new.

"Register Kepler's built-in system interfaces"
(OrderedCollection new
add: #InstalledModuleRegistrationSystem;
add: #EventNotificationSystem;
add: #TimeSystem;
yourself)
do: [:each | (symbolDictionary at: each) registerInterfaces].
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
| symbolDictionary |
symbolDictionary := Rowan image
symbolDictNamed: 'KeplerCore'
symbolDictNamed: 'Kepler'
ifAbsent: [
Rowan image symbolList createDictionaryNamed: 'KeplerCore' at: Rowan image symbolList size + 1.
Rowan image symbolDictNamed: 'KeplerCore'
Rowan image symbolList createDictionaryNamed: 'Kepler' at: Rowan image symbolList size + 1.
Rowan image symbolDictNamed: 'Kepler'
].

"Preliminar definition of global variables for source code to compile.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
| symbolDictionary |

symbolDictionary := Rowan image
symbolDictNamed: 'KeplerCore'
ifAbsent: [Error signal: 'KeplerCore symbol dictionary missing' ].
symbolDictNamed: 'Kepler'
ifAbsent: [Error signal: 'Kepler symbol dictionary missing' ].

"Global variables definition"
symbolDictionary at: #SystemInterfaces put: Namespace new.
Expand Down
11 changes: 11 additions & 0 deletions rowan/components/scripts/developmentPreLoad.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
| symbolDictionary |
symbolDictionary := Rowan image
symbolDictNamed: 'Kepler'
ifAbsent: [
Rowan image symbolList createDictionaryNamed: 'Kepler' at: Rowan image symbolList size + 1.
Rowan image symbolDictNamed: 'Kepler'
].

"Preliminar definition of global variables for source code to compile.
These will be properly replaced later in the post load script."
symbolDictionary at: #SystemInterfaces put: nil.

0 comments on commit 7ebc51f

Please sign in to comment.