Thanks a lot Mariano for the quick answer I will take a look the chapter to.
Cheers,
Fabrizio
On Sun, Feb 19, 2012 at 12:21 PM, Fabrizio Perin <fabrizio.perin@gmail.com> wrote:
Hi all,
I have a question about metacello configuration. Given the following default method:
ConfigurationOfFAMIXSQL>>default: spec
��� <version: 'default'>
���
��� spec for: #common do: [
��� ��� spec blessing: #default.
��� ��� spec repository: 'http://www.squeaksource.com/Moose'.
��� ���
��� ��� spec� project: 'PetitSQLParser for MooseJEE' with: [
��� ��� ��� spec
��� ��� ��� ��� className: 'ConfigurationOfPetitSQLParser';
��� ��� ��� ��� file: 'ConfigurationOfPetitSQLParser';
��� ��� ��� ��� version: 'default';
��� ��� ��� ��� repository: 'http://www.squeaksource.com/PetitSQLParser' ].
��� ���
��� ��� spec
��� ��� ��� "Core"���
��� ��� ��� package: 'Famix-SQL';
��� ��� ���
��� ��� ��� "importers"
��� ��� ��� package: 'Moose-SQL-Importer' with: [spec requires: #('PetitSQLParser for MooseJEE' 'Famix-SQL').];
��� ��� ��� ���
��� ��� ��� "Tests"
��� ��� ��� package: 'Famix-Tests-SQL'with: [spec requires: 'Famix-SQL'];
��� ��� ��� package: 'Moose-Tests-SQL-Importer' with: [spec requires: 'Moose-SQL-Importer'].
��� ��� ���
��� ���
��� ��� spec group: 'Model' with: #('Famix-SQL').
��� ��� spec group: 'Model-Tests' with: #('Famix-Tests-SQL').
��� ���
��� ��� spec group: 'Importer' with: #('Moose-SQL-Importer').
��� ��� spec group: 'Importer-Tests' with: #('Moose-Tests-SQL-Importer').
���
��� ��� spec group: 'default' with: #('Model' 'Importer').
��� ]
When I ask to load default.� What metacello look at: the pragma, the blessing: or the group:?
depend what are you talking about. Version or packages/groups?
ConfigurationOfFAMIXSQL project xxxVersion load -> that loads the default packages/groups, in you case, � spec group: 'default' with: #('Model' 'Importer').
In that case you load a version XXX and from that version you load the default packages/groups
(ConfigurationOfFAMIXSQL project version: 'default')� load ->� the same as the previous one, but instead of version XXX you load version 'default'.
Notice that Metacello knows NOTHING about calling versions as "default". That's something I saw in moose guys.
�
It would be possible to load just the Model group? and How can I do that?
ConfigurationOfFAMIXSQL project xxxVersion load: 'Model'.
(ConfigurationOfFAMIXSQL project version: 'default')� load: 'Model'.
I recommend you to read the Metacello chapter: https://gforge.inria.fr/frs/download.php/28462/Metacello.pdf
Cheers
�Thanks a lot,
Fabrizio
--
Mariano
http://marianopeck.wordpress.com