[Glass] Metacello: getting more info on a project
Dale Henrichs via Glass
glass at lists.gemtalksystems.com
Fri Dec 22 08:44:47 PST 2017
On 12/21/17 10:40 PM, Iwan Vosloo via Glass wrote:
> 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?
Haha, there aren't any notion of pre-conceived structure in Metacello.
It is up to the maintainers of projects to define and enforce structure.
Dale
More information about the Glass
mailing list