Getting the list of declared packages

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

Getting the list of declared packages

Alexandre Bergel-5
Hi!

I know that I asked this question some times ago, but I experience some problem still.

Consider the following baseline:
-=-=-=-=-=-=-=-=-=-=-=-=
baseline13: spec
        <version: '1.3-baseline'>
       
        spec for: #common do: [
                spec blessing: #baseline.
                spec repository: 'http://www.squeaksource.com/Spy'.    
  spec project: 'Merlin' with: [
                                spec
                                        className: 'ConfigurationOfMerlin';
                                        version: '1.0-baseline';
                                        file:  'ConfigurationOfMerlin';
                                        repository: 'http://www.squeaksource.com/Merlin' ].

                        spec package: 'Spy'.
                ].
-=-=-=-=-=-=-=-=-=-=-=-=

Is there a way to get the list of packages declared in it?

The code:
        packageNames := OrderedCollection new.
        (ConfigurationOfBlahblah project version: lastBaseLineName)
                record loadDirective packageDirectivesDo: [:directive |
                        packageNames add: directive file ].

gives me
'ConfigurationOfMerlin' 'Merlin' 'Spy'

I just want 'Spy'
Is there a way to get it? Maybe running a visitor on a spec will do it?

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





Reply | Threaded
Open this post in threaded view
|

Re: Getting the list of declared packages

Mariano Martinez Peck
Guess?

ConfigurationOfBlahblah project currentVersion packages

heheheheheh

or maybe I understood wrong ;)

hth

mariano

On Tue, Dec 28, 2010 at 6:03 PM, Alexandre Bergel <[hidden email]> wrote:
Hi!

I know that I asked this question some times ago, but I experience some problem still.

Consider the following baseline:
-=-=-=-=-=-=-=-=-=-=-=-=
baseline13: spec
       <version: '1.3-baseline'>

       spec for: #common do: [
               spec blessing: #baseline.
               spec repository: 'http://www.squeaksource.com/Spy'.
               spec project: 'Merlin' with: [
                               spec
                                       className: 'ConfigurationOfMerlin';
                                       version: '1.0-baseline';
                                       file:  'ConfigurationOfMerlin';
                                       repository: 'http://www.squeaksource.com/Merlin' ].

                       spec package: 'Spy'.
               ].
-=-=-=-=-=-=-=-=-=-=-=-=

Is there a way to get the list of packages declared in it?

The code:
       packageNames := OrderedCollection new.
       (ConfigurationOfBlahblah project version: lastBaseLineName)
               record loadDirective packageDirectivesDo: [:directive |
                       packageNames add: directive file ].

gives me
'ConfigurationOfMerlin' 'Merlin' 'Spy'

I just want 'Spy'
Is there a way to get it? Maybe running a visitor on a spec will do it?

Cheers,
Alexandre

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






Reply | Threaded
Open this post in threaded view
|

Re: Getting the list of declared packages

Alexandre Bergel-5
Frankly speaking, this was not easy to guess...
I started to play with the packageSpec, using the record message, ...

Apparently your suggestion does what I need. Thanks!

Alexandre


On 28 Dec 2010, at 17:51, Mariano Martinez Peck wrote:

> Guess?
>
> ConfigurationOfBlahblah project currentVersion packages
>
> heheheheheh
>
> or maybe I understood wrong ;)
>
> hth
>
> mariano
>
> On Tue, Dec 28, 2010 at 6:03 PM, Alexandre Bergel <[hidden email]> wrote:
> Hi!
>
> I know that I asked this question some times ago, but I experience some problem still.
>
> Consider the following baseline:
> -=-=-=-=-=-=-=-=-=-=-=-=
> baseline13: spec
>        <version: '1.3-baseline'>
>
>        spec for: #common do: [
>                spec blessing: #baseline.
>                spec repository: 'http://www.squeaksource.com/Spy'.
>                spec project: 'Merlin' with: [
>                                spec
>                                        className: 'ConfigurationOfMerlin';
>                                        version: '1.0-baseline';
>                                        file:  'ConfigurationOfMerlin';
>                                        repository: 'http://www.squeaksource.com/Merlin' ].
>
>                        spec package: 'Spy'.
>                ].
> -=-=-=-=-=-=-=-=-=-=-=-=
>
> Is there a way to get the list of packages declared in it?
>
> The code:
>        packageNames := OrderedCollection new.
>        (ConfigurationOfBlahblah project version: lastBaseLineName)
>                record loadDirective packageDirectivesDo: [:directive |
>                        packageNames add: directive file ].
>
> gives me
> 'ConfigurationOfMerlin' 'Merlin' 'Spy'
>
> I just want 'Spy'
> Is there a way to get it? Maybe running a visitor on a spec will do it?
>
> Cheers,
> Alexandre
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.