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" <stephane.duca...@inria.fr> 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 | > Pharo-project@lists.gforge.inria.fr | > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project