Category: Language-Packaging
Superclass: Object
I am not part of a standard Smalltalk system. I provide methods for retrieving package information from an XML file and to load packages into a Smalltalk image, correctly handling dependencies.

Method category index

*Language-Kernel (class)
accessing (class)
loading (class)
testing (class)

*Language-Kernel (class)

insertPackage: aPackage
Answer the receiver.

loadPackageFromFile: aFileName

Not commented.

top


accessing (class)

builtFilesFor: package
Answer a Set of Strings containing the filenames of the given package's machine-generated files (relative to the directory answered by #directoryFor:)

calloutsFor: package

Answer a Set of Strings containing the filenames of the given package's required callouts (relative to the directory answered by #directoryFor:)

directoryFor: package

Answer a Directory object to the given package's files

featuresFor: package

Answer a Set of Strings containing the features provided by the given package.

fileInsFor: package

Answer a Set of Strings containing the filenames of the given package's file-ins (relative to the directory answered by #directoryFor:)

filesFor: package

Answer a Set of Strings containing the filenames of the given package's files (relative to the directory answered by #directoryFor:)

flush

Set to reload the `packages.xml' file the next time it is needed.

ignoreCallouts

Answer whether unavailable C callouts must generate errors or not.

ignoreCallouts: aBoolean

Set whether unavailable C callouts must generate errors or not.

librariesFor: package

Answer a Set of Strings containing the filenames of the given package's libraries (relative to the directory answered by #directoryFor:)

modulesFor: package

Answer a Set of Strings containing the filenames of the given package's modules (relative to the directory answered by #directoryFor:)

packageAt: package

Answer a Package object for the given package

packageAt: package ifAbsent: aBlock

Answer a Package object for the given package

prerequisitesFor: package

Answer a Set of Strings containing the prerequisites for the given package

refresh

Reload the `packages.xml' file in the image and kernel directories. The three possible places are 1) the kernel directory's parent directory, 2) the `.st' subdirectory of the user's home directory, 3) the local image directory (in order of decreasing priority). For a packages.xml found in the kernel directory's parent directory, all three directories are searched. For a packages.xml found in the `.st' subdirectory, only directories 2 and 3 are searched. For a packages.xml directory in the local image directory, finally, only directory 3 is searched.

sunitScriptFor: package

Answer a Strings containing a SUnit script that describes the package's test suite.

top


loading (class)

fileInPackage: package
File in the given package into GNU Smalltalk.

fileInPackages: packagesList

File in all the packages in packagesList into GNU Smalltalk.

top


testing (class)

canLoad: package
Answer whether all the needed pre-requisites for package are available.

top