Load SSO and WebSocket from Metacello Configuration?
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
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 <hernan.morales@gmail.com> 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
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
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 <stephan@stack.nl> 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
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 <sven@stfx.eu>:
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 <stephan@stack.nl> 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
participants (3)
-
Hernán Morales Durand -
Stephan Eggermont -
Sven Van Caekenberghe