Back: Package-accessing Up: Base classes Forward: PackageLoader class-accessing   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.122 PackageLoader

Defined in namespace Smalltalk
Superclass: Object
Category: Language-Packaging
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.

1.122.1 PackageLoader class: accessing  (class)
1.122.2 PackageLoader class: loading  (class)
1.122.3 PackageLoader class: testing  (class)


1.122.1 PackageLoader class: accessing

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 complete path 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

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.


1.122.2 PackageLoader class: loading

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

fileInPackages: packagesList
File in all the packages in packagesList into GNU Smalltalk.


1.122.3 PackageLoader class: testing

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



Back: PackageLoader class-loading Up: PackageLoader Forward: Permission   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html