Today we created a tool with stephane:
I'm a kind of loader that know how to save and load list of packages.
First when you have a configuration of packages that you want to version use:
(Pay attention version and save first your packages, we are talking here about saving a list of packages not the packages themselves)
publishNewVersion
it will create a new method scriptXXX on the MooseConfigurationRepository
You can then version this class in the package containing the Reloader class.
In another image once you load this new version you can reload the configuration you save using the method
reload: aNumber
and it will load all the packages you previously specified.
Under the cover, we need a way to know which packages to save and where to load them.
Here is how this information is specified right now, it can be modified using accessors.
defaultSavedPackagesPatternNames
^ #(#('Moose-Tests-Algos-InformationRetrieval*' 'http://www.squeaksource.com/MooseAlgos') #('Moose-Settings*' 'http://www.squeaksource.com/Moose') #('ConfigurationOfNewECompletion*' 'http://ss3.gemstone.com/ss/NEC') #('Fame-Example*' 'http://www.squeaksource.com/Fame') #('Moose-Tests-Algos-FormalConceptAnalysis*' 'http://www.squeaksource.com/MooseAlgos') #('CollectionExtensions*' 'http://www.squeaksource.com/CollectionExtensions') #('Grease-Core*' 'http://www.squeaksource.com/Seaside30') #('PetitSmalltalk*' 'http://source.lukas-renggli.ch/petit') #('Mondrian-Visitor*' 'http://www.squeaksource ......)
Currently, it kills squeaksource but we will retry with a wait between each package and it should works.
This tool is available at: http://www.smalltalkhub.com/mc/StephaneDucasse/MooseReloader/main
--
Guillaume Larcheveque