[squeak-dev] Sake/Packages

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

[squeak-dev] Sake/Packages

keith1y
For those who are interested the anatomy of a task,

AnyClass-c- #taskDoThis: aParam

^ SakeTask new: [ :task |

       "if a depended upon task fails then the process stops"

       task dependsOn: "list of tasks" {  AnyClass taskDoThat.  [ self
isReady ].  (SakeTask class: 'SomeClass') exists. }.

      "block or list of tasks, the last item has to return true for the
action to happen"
       "if a task fails, then the action is considered, not needed"

       task if:  {  (SakeTask class: 'SomeClass') exists }.

     "block or list of tasks"
      task action: { self doTheOther. [ "do something else" ].

]

there are a few wrinkles to be worked out but it has been working well
for me. We await some file managing tasks as found in Make/Rake

Keith


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Sake/Packages

keith1y
And... now we have Sake/Packages-SqueakMap. This contains almost all of
the data on squeakmap in a single class.

It uses Installer websqueakmap install: 'Package(version)'. to actually
perform the loads, so Squeakmap itself does not have to be loaded in the
image.

Usage:

(Packages squeakmap load: 'rSTRemoteSmalltalk(r1)'  ) run.

Keith