[squeak-dev] [CI] Unloading a package programmatically?
casey.obrien.r at gmail.com
Fri Sep 9 12:04:02 UTC 2011
I love Smalltalk:D so often the hard way is three lines of code!
On Fri, Sep 9, 2011 at 5:00 AM, David T. Lewis <lewis at mail.msen.com> wrote:
> On Fri, Sep 09, 2011 at 01:36:07PM +0200, Levente Uzonyi wrote:
> > On Fri, 9 Sep 2011, Casey Ransberger wrote:
> > >Okay, so, here's what we're gonna do. Sort out how to unload it when
> > >there's
> > >more people awake:)
> > >
> > >It's seriously like six or seven classes in one category. There *must*
> be a
> > >way to do this using... Smalltalk.
> > Yeah, by hand:
> > (MCPackage named: 'HudsonBuildTools') unload.
> > SystemOrganization removeEmptyCategories.
> > MCFileBasedRepository flushAllCaches.
> Sure, and all of the "reloadable" packages work this way. For examples
> of this, see SmalltalkImage>>unloadAllKnownPackages.
> A well-behaved package should always be loadable and unloadable in
> this manner, so using this mechanism to unload HudsonBuildTools
> is a good thing to do.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev