Stefan Schmiedl's blog

DRY package description ... in Smalltalk

So here we go again ... this time using native Smalltalk code to describe package contents in a DRY way:

Eval [
  PackageBuilder new
    name: 'MyPackage';
    namespace: 'MyNamespace';
    prereq: 'Package1';
    prereq: 'Package2';
    ...
    testsBelow: 'Tests' matching: '*.st';
    filein: 'File1.st';
    filein: 'File2.st';
    ...
    buildXml
]

DRY package description

Tagged:

If you are used to having one class per file, package descriptions tend to get a bit unwieldy. Take a look at Iliad's Core/package.xml, as an example. What you see is a lot of typing, some of it, gasp, even repeated. Let's DRY this up a bit.

gst on gentoo

The latest ebuild available on gentoo targets GNU Smalltalk 3.0.2. 3.1 has been out for quite some time and there are several improvements available via git. This post describes what I did to make things work on my Gentoo amd64 system.

Syndicate content

User login