[Glass] Another metacello loading puzzle: xml

Iwan Vosloo via Glass glass at lists.gemtalksystems.com
Tue Dec 26 22:03:56 PST 2017

On 26/12/2017 19:38, Dale Henrichs via Glass wrote:
> Well I think that if you want to avoid hitting the network all of the 
> time, then you do a separate fetch into the cacheRepository[1] and then 
> when you are doing a load, you use repositoryOverrides[2]. The links are 
> broken in the urls below but the code is and explanations are still 
> valid ...
> Dale
> [1] 
> https://code.google.com/archive/p/metacello/wikis/FAQ.wiki#How_do_I_create_a_local_cache_repository_for_a_config 
> [2] 
> https://code.google.com/archive/p/metacello/wikis/FAQ.wiki#How_do_I_override_the_repository_for_a_config 

Thanks Dale,

I have to use the Metacello scripting API though... and according to 
its docs[1] that means to simply fetch (with cacheRepository set) and 
thereafter a load (also with cacheRepository set).

I have been trying to get just this bit to work as per the docs... Are 
those docs correct? Should this work via the scripting API?

I figured that repositoryOverrides will just help when it comes to the 
ConfigurationOf/BaselineOf classes themselves. And I dont see anything 
about repositoryOverrides in those scripting API docs.

I also struggle to understand how docs of the one API apply to the 
scripting API etc




More information about the Glass mailing list