Load SSO and WebSocket from Metacello Configuration?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Load SSO and WebSocket from Metacello Configuration?

hernanmd
Hello,

I want to load SSO and WebSocket packages from ZincHTTPComponents in my Metacello Configurations. Unfortunately there is no ConfigurationOfSSO or ConfigurationOfWebSocket I am aware of.

I am loading currently in a #postLoad method this way:

#('SSO' 'WebSocket') do: [ :each |
  #ConfigurationOfZincHTTPComponents asClass project bleedingEdge load: each ].

But a load exception is thrown because I have subclassed some classes from such packages.

Can anyone help me by commenting or sending a code snippet of what could be the right solution for such situation?

Thanks

Hernán

Reply | Threaded
Open this post in threaded view
|

Re: Load SSO and WebSocket from Metacello Configuration?

Sven Van Caekenberghe-2
Both are indeed groups within the main Zn configuration.

Can't you just depend on the group ?

But I am no Metacello expert either.

> On 16 Feb 2016, at 20:52, Hernán Morales Durand <[hidden email]> wrote:
>
> Hello,
>
> I want to load SSO and WebSocket packages from ZincHTTPComponents in my Metacello Configurations. Unfortunately there is no ConfigurationOfSSO or ConfigurationOfWebSocket I am aware of.
>
> I am loading currently in a #postLoad method this way:
>
> #('SSO' 'WebSocket') do: [ :each |
>   #ConfigurationOfZincHTTPComponents asClass project bleedingEdge load: each ].
>
> But a load exception is thrown because I have subclassed some classes from such packages.
>
> Can anyone help me by commenting or sending a code snippet of what could be the right solution for such situation?
>
> Thanks
>
> Hernán
>


Reply | Threaded
Open this post in threaded view
|

Re: Load SSO and WebSocket from Metacello Configuration?

Stephan Eggermont-3
On 16-02-16 21:10, Sven Van Caekenberghe wrote:
> Both are indeed groups within the main Zn configuration.
>
> Can't you just depend on the group ?

That sounds like the right way to me. I don't understand at all why a
postLoad should be involved.

Stephan



Reply | Threaded
Open this post in threaded view
|

Re: Load SSO and WebSocket from Metacello Configuration?

Sven Van Caekenberghe-2
I found this is one of my projects:

baseline6: spec
  <version: '6-baseline'>
       
  spec for: #common do: [
    spec
      ...
      project: 'ZincHTTPComponents' with: [
        spec
          className: 'ConfigurationOfZincHTTPComponents';
          repository: 'http://mc.stfx.eu/ZincHTTPComponents';
          loads: #('Core' 'Tests' 'REST' 'AWS');
          versionString: #stable ];
  ...
]

That should do it, no ?

> On 16 Feb 2016, at 21:47, Stephan Eggermont <[hidden email]> wrote:
>
> On 16-02-16 21:10, Sven Van Caekenberghe wrote:
>> Both are indeed groups within the main Zn configuration.
>>
>> Can't you just depend on the group ?
>
> That sounds like the right way to me. I don't understand at all why a postLoad should be involved.
>
> Stephan
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Load SSO and WebSocket from Metacello Configuration?

hernanmd
Fantastic!
Finally I used:

            spec
              className: 'ConfigurationOfZincHTTPComponents';
              repository: 'http://mc.stfx.eu/ZincHTTPComponents';
              loads: #('Core' 'SSO' 'REST' 'WebSocket');
              versionString: #stable ];       

(I wish groups could be more visible from UI)

Thank you both Sven and Stephan,
Cheers,

Hernán


2016-02-16 18:11 GMT-03:00 Sven Van Caekenberghe <[hidden email]>:
I found this is one of my projects:

baseline6: spec
  <version: '6-baseline'>

  spec for: #common do: [
    spec
      ...
      project: 'ZincHTTPComponents' with: [
        spec
          className: 'ConfigurationOfZincHTTPComponents';
          repository: 'http://mc.stfx.eu/ZincHTTPComponents';
          loads: #('Core' 'Tests' 'REST' 'AWS');
          versionString: #stable ];
  ...
]

That should do it, no ?

> On 16 Feb 2016, at 21:47, Stephan Eggermont <[hidden email]> wrote:
>
> On 16-02-16 21:10, Sven Van Caekenberghe wrote:
>> Both are indeed groups within the main Zn configuration.
>>
>> Can't you just depend on the group ?
>
> That sounds like the right way to me. I don't understand at all why a postLoad should be involved.
>
> Stephan
>
>
>