[squeak-dev] Q CodeLoader wont load my mcz files

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Q CodeLoader wont load my mcz files

Hans Baveco
Q CodeLoader wont load my mcz files

CodeLoader refuses to load my mcz files from squeaksource and other repositories.
The mcz files are created from 3.8 Squeak and Croquet (Cobalt) images. What should I do to make these mcz files loadable?

TIA
Hans

| loader |
loader := CodeLoader new.
loader baseURL: 'http://www.squeaksource.com/ColorLegend/'.
loader loadSourceFiles: #('ColorLegend-jmb.15.mcz' );installSourceFiles.



Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Q CodeLoader wont load my mcz files

Edgar J. De Cleene



El 7/9/08 10:56 AM, "Baveco, Hans" <[hidden email]> escribió:

> CodeLoader refuses to load my mcz files from squeaksource and other
> repositories.
> The mcz files are created from 3.8 Squeak and Croquet (Cobalt) images. What
> should I do to make these mcz files loadable?
>
> TIA
> Hans


look for  

installSourceFiles
| packName pos |
    "Install the previously loaded source files"
    sourceFiles == nil
        ifTrue: [^ self].
    sourceFiles
        do: [:req | (req url endsWith: '.mcz')
                ifTrue: [
                    pos := req url lastPositionOf: $/.
                    packName := req url copyFrom: pos + 1 to: req url size.
                    self tryVersion: packName ].
                (req url endsWith: '.sar')
                ifTrue: [ SARInstaller new fileInFrom: req contentStream].
                (req url endsWith: '.cs') |(req url endsWith: 'st')
                ifTrue: [self installSourceFile: req contentStream]].
    sourceFiles := nil


This is part of my SqueakLightII code, should modify for others Squeak

Edgar



Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Q CodeLoader wont load my mcz files

Damien Cassou-3
In reply to this post by Hans Baveco
On Wed, Jul 9, 2008 at 3:56 PM, Baveco, Hans <[hidden email]> wrote:
> CodeLoader refuses to load my mcz files from squeaksource and other
> repositories.
> The mcz files are created from 3.8 Squeak and Croquet (Cobalt) images. What
> should I do to make these mcz files loadable?

I'm not sure this class is able to load mcz files at all. You'd better
use Installer (http://installer.pbwiki.com/Installer). Another
solution is to use Monticello directly:

MCMczReader loadVersionFile: filename.

or something like that.

--
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Q CodeLoader wont load my mcz files

Damien Cassou-3
On Wed, Jul 9, 2008 at 4:11 PM, Damien Cassou <[hidden email]> wrote:
> MCMczReader loadVersionFile: filename.

If you don't have MCMczReader, you can try:

MczInstaller installFileNamed: filename fromURL: nil



--
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)