Skip to content

Commit

Permalink
adjust attachRowanDevClones.stone for Rowan 3 and 3.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehenrich committed Nov 21, 2024
1 parent 74b8d4c commit 4420d13
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions bin/attachRowanDevClones.stone
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,26 @@ attachDevClonesV3: projectsHome
loadSpec := project loadSpecification.
loadSpecs addLoadSpec: loadSpec ] ].
loadSpecs do: [:loadSpec |
| relRoot |
| relRoot projectAlias |
projectAlias := loadSpec projectName = 'RowanClientServices'
ifTrue: [
(System gemVersionAt: 'gsVersion') asRwGemStoneVersionNumber >= ('3.7.2' asRwGemStoneVersionNumber)
ifTrue: [
"RowanClientServices is the only project that needs a projectAlias"
'RowanClientServicesV3']
ifFalse: [ loadSpec projectAlias ] ]
ifFalse: [ loadSpec projectAlias ].
relRoot := loadSpec relativeRepositoryRoot.
relRoot isEmpty
ifTrue: [
loadSpec
projectsHome: projectsHome;
gitUrl: 'file:', ((projectsHome, '/', loadSpec projectAlias) asFileReference pathString);
gitUrl: 'file:', ((projectsHome, '/', projectAlias) asFileReference pathString);
yourself ]
ifFalse: [
"embedded Rowan project"
loadSpec
gitUrl: 'file:', (((projectsHome, '/', loadSpec projectAlias) asFileReference / relRoot) pathString);
gitUrl: 'file:', (((projectsHome, '/', projectAlias) asFileReference / relRoot) pathString);
projectsHome: projectsHome;
yourself ].
loadSpec addCustomConditionalAttributes: #('tests' 'testsV2') ].
Expand Down

0 comments on commit 4420d13

Please sign in to comment.