Hi Pavel,

Wow!

About too many literals in a configuration: with Snapshotcello we
encountered the same problem. Our solution was to create a utility method:

populateSpec: aSpec with: list
"generated by Snapshotcello
creates a spec object for the package and the version stored in the list"
 list do: [:each |
aSpec package: each third with: [
aSpec file: (each first  copyUpToLast: $. ).
aSpec repository: each second ] ]

And the list is stored in a separate method with triplets like:

snapshot1
"generated by Snapshotcello"

^ #(
#('ConfigurationOfGraphET-AlexandreBergel.6.mcz'  '
http://www.smalltalkhub.com/mc/ObjectProfile/GraphET/main/'
 'ConfigurationOfGraphET' )  ... )

Cheers,
Doru



On Tue, Jan 21, 2014 at 8:06 PM, Pavel Krivanek <pavel.kriva...@gmail.com>wrote:

> Hi,
>
> I transformed the Morphic reloading script into a configuration and it
> works :-)
>
> Jenkins job:
>
> https://ci.inria.fr/pharo-contribution/view/Pharo-Kernel-3.0/job/PharoKernel3.0-FromTopShrink-Reload/
>
> Configuration repository:
> http://smalltalkhub.com/#!/~Pharo/SystemConfigurations/
>
> it's named ConfigurationOfIDE.
>
> Small note, I must parse versions list from a string because the method
> has too many literals if I try to use standard form used in normal
> configurations generated by the tools.
>
> Cheers,
> -- Pavel
>



-- 
www.tudorgirba.com

"Every thing has its own flow"

Reply via email to