Hi Folks. Just a little tip. I guess Dale will ANN in next Metacello
version, but for those who doesn't want to wait :)

Read the above mail !!!

Now there is support to unload of Metacello itself.  I can create a
ConfigurationOfMyApplication that I use to load all my necessary stuff in a
code (runtime) image, and then Metacello disappear. I use metacello to
create the image, but then I unload it.

Like a builder: it helps to build and then we work is finished we goes out
not occupy space in your just new little house :)

Cheers

Mariano


On Wed, Jan 27, 2010 at 9:09 PM, Dale Henrichs
<[email protected]>wrote:

> I've just committed a new version of ConfigurationOfMetacello
> (ConfigurationOfMetacello-DaleHenrichs.149) with the class-side method
> #unloadMetacello implemented using the aforementioned Gofer script.
>
> The template config has the class-side method #unloadMetacello (available
> when 1.0-beta.23 is released) implemented as follows:
>
>  unloadMetacello
>    Smalltalk at: #ConfigurationOfMetacello ifPresent: [:cls | cls
> unloadMetacello ]
>
> This method can be added to existing configs and then used in the load
> method or build scripts as desired.
>
> Dale
>
> ----- "Stéphane Ducasse" <[email protected]> wrote:
>
> | Yes this is cool idea.
> |
> | Bla unload  = unload myself and disappear
> | >
> | >
> | > | Something like this:
> | > |
> | > |     #(Metacello-Core Metacello-MC Metacello-Platform .... )
> | > |         do: [ :each | (MCPackage named: each) unload ].
> | > |
> | >
> | > For unloading just Metacello, this gofer script works:
> | >
> | >  | gofer |
> | >  gofer := Gofer new.
> | >  MCWorkingCopy allManagers do: [:wc |
> | >    (wc packageName beginsWith: 'Metacello')
> | >      ifTrue: [ gofer package: wc packageName ]].
> | >  gofer unload.
> | >
> | >
> | > Even better :)
> | >
> | > So...could that little piece of code be part of some method on
> | Metacello ? or those who want that just need to evaluate that or put
> | it, for example, as class side method in their own Configuration ?
> | waybe we can add it to the configuartion template ?   I don't know if
> | unload stuff will be useful for people...I guess it will, but I am not
> | sure.
> | >
> | > Cheers
> | >
> | > Mariano
> | >
> | >
> | > Dale
> | >
> | > _______________________________________________
> | > Pharo-project mailing list
> | > [email protected]
> | > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to