[Metacello] Getting all working copies from a configuration
Hi all, (and particularly Dale :) I want to get the code (classes, methods...) that will be loaded by a metacello configuration *without* installing it inside the image. (ConfigurationOfXXX project version: #'1.0') fetchCode "or something like that" I saw that there is a #fetch method in the MetacelloMCVersion but It does not do what I want. Nor it loads the code in the package cache as the Gofer fetch does. Is metacello prepared for fetching the code without loading it inside the image? On one side I know that I can do a #record to get the list of specs of a particular version. I also know I can get what I want from a monticello repository + a version name doing something like this: (MCHttpRepository location:' http://smalltalkhub.com/mc/Guille/ObjectSpace/main') versionFromFileNamed: ('OzObjectSpace-GuillermoPolito.124.mcz') But I don't understand how to easily get the repository location and versions from a metacello configuration. Any lead? ^^ Thanks, Guille
Guillermo Polito wrote
I know that I can do a #record to get the list of specs of a particular version.
I'm not sure I understand... How does your use case differ from what #record provides? What has always worked for me is "(ConfigurationOfXXX project version: #'1.0') record loadDirective" ----- Cheers, Sean -- View this message in context: http://forum.world.st/Metacello-Getting-all-working-copies-from-a-configurat... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Guillermo, I think that Sean is right, the MetacelloPackageLoadDirective will have a GoferResolvedReference in the externalReference slot for the packages to be loaded and you can send version to that ... I suggest you use the scriptting api and use `fetch` to get what I think you want: Metacello new configuration: 'XXX'; version '1.0'; repository: 'http://.....'; fetch Dale On 02/27/2015 07:14 AM, Sean P. DeNigris wrote:
Guillermo Polito wrote
I know that I can do a #record to get the list of specs of a particular version. I'm not sure I understand... How does your use case differ from what #record provides?
What has always worked for me is "(ConfigurationOfXXX project version: #'1.0') record loadDirective"
----- Cheers, Sean -- View this message in context: http://forum.world.st/Metacello-Getting-all-working-copies-from-a-configurat... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (3)
-
Dale Henrichs -
Guillermo Polito -
Sean P. DeNigris