Skip to content

Commit

Permalink
Do not load famix if it is already present.
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Apr 3, 2020
1 parent 2c9f142 commit fc259e8
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions src/BaselineOfFamixTagging/BaselineOfFamixTagging.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,37 @@ BaselineOfFamixTagging >> baseline: spec [
spec
for: #common
do: [ "Dependencies"
self
famix: spec;
materialColor: spec.
self materialColor: spec.

"Packages"
spec
package: 'Famix-Tagging' with: [ spec requires: #('MaterialColors' 'Famix') ];
package: 'Famix-Tagging-Code' with: [ spec requires: #('Famix-Tagging' 'FamixTraits') ];
package: 'Famix-Tagging-Tests-Generator' with: [ spec requires: #('FamixGenerator') ];
package: 'Famix-Tagging' with: [ spec requires: #('MaterialColors') ];
package: 'Famix-Tagging-Code' with: [ spec requires: #('Famix-Tagging') ];
package: 'Famix-Tagging-Tests-Generator';
package: 'Famix-Tagging-Tests-Entities' with: [ spec requires: #('FamixTraits') ];
package: 'Famix-Tagging-Tests' with: [ spec requires: #('Famix-Tagging' 'Famix-Tagging-Code' 'Famix-Tagging-Tests-Entities') ].

"Groups"
spec
group: 'TaggingMinimal' with: #('Famix-Tagging');
group: 'Tagging' with: #('TaggingMinimal' 'Famix-Tagging-Code');
group: 'TaggingTests' with: #('Famix-Tagging-Tests') ]
group: 'TaggingTests' with: #('Famix-Tagging-Tests') ].

spec
for: #(#WithoutFamix)
do: [ self famix: spec.
spec
package: 'Famix-Tagging' with: [ spec requires: #('Famix') ];
package: 'Famix-Tagging-Code' with: [ spec requires: #('FamixTraits') ];
package: 'Famix-Tagging-Tests-Generator' with: [ spec requires: #('FamixGenerator') ] ]
]

{ #category : #accessing }
BaselineOfFamixTagging >> customProjectAttributes [
self class environment at: #BaselineOfFamixs ifAbsent: [ ^ #(#WithoutFamix) ].

^ #()

]

{ #category : #dependencies }
Expand Down

0 comments on commit fc259e8

Please sign in to comment.