[Glass] Metacello: getting more info on a project

Iwan Vosloo via Glass glass at lists.gemtalksystems.com
Thu Dec 21 22:40:19 PST 2017


On 11/12/2017 22:00, Dale Henrichs via Glass wrote:
> I understand and reflecting on this I realize that I was probably 
> thinking about the general case where you might want to ask the 
> question: "what groups are there for the Seaside project for Pharo6.1" 
> ... while in GemStone ... if you narrow the scope of the question to: 
> "what groups are available for the platform I'm running on" ... then I 
> think it is not that difficult to supply a workspace to produce the list 
> of groups available for the current platform given a BaselineOf:
> 
>    | project groupNames |
>    project := BaselineOfMetacello new project.
>    groupNames := Set new.
>    (project map at: 'baseline') spec
>      specListProjectDo: [ :projectSpec |  ]
>      packageDo: [ :packageSpec |  ]
>      groupDo: [ :groupSpec | groupNames add: groupSpec name ].
>    groupNames
> 
> you can see that it is possible to garner information about the names of 
> dependent projects and packages as well ...

Ok, thanks Dale, that is useful.  Funny, I would have thought that the 
concept of which groups a project "exposes" (if that is the right 
terminology) should be the same regardless of platform?

Regards
Iwan


-- 

Reahl, the Python only web framework / www.reahl.org


More information about the Glass mailing list