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

1.125 Package

Defined in namespace Smalltalk
Superclass: Kernel.PackageInfo
Category: Language-Packaging
I am not part of a standard Smalltalk system. I store internally the information on a Smalltalk package, and can output my description in XML.

1.125.1 Package class: accessing  (class)
1.125.2 Package class: instance creation  (class)
1.125.3 Package: accessing  (instance)
1.125.4 Package: version parsing  (instance)


1.125.1 Package class: accessing

tags
Not commented.


1.125.2 Package class: instance creation

parse: file
Answer a package from the XML description in file.


1.125.3 Package: accessing

addBuiltFile: aString
Not commented.

addCallout: aString
Not commented.

addFeature: aString
Not commented.

addFile: aString
Not commented.

addFileIn: aString
Not commented.

addLibrary: aString
Not commented.

addModule: aString
Not commented.

addPrerequisite: aString
Not commented.

addSunitScript: aString
Not commented.

baseDirectories
Answer `baseDirectories'.

baseDirectories: aCollection
Check if it's possible to resolve the names in the package according to the base directories in baseDirectories, which depend on where the packages.xml is found: the three possible places are 1) the system kernel directory's parent directory, 2) the local kernel directory's parent directory, 3) the local image directory (in order of decreasing priority).

For a packages.xml found in the system kernel directory's parent directory, all three directories are searched. For a packages.xml found in the local kernel directory's parent directory, only directories 2 and 3 are searched. For a packages.xml directory in the local image directory, instead, only directory 3 is searched.

builtFiles
Answer a (modifiable) OrderedCollection of files that are part of the package but are not distributed.

callouts
Answer a (modifiable) Set of call-outs that are required to load the package. Their presence is checked after the libraries and modules are loaded so that you can do a kind of versioning.

directory
Answer the base directory from which to load the package.

features
Answer a (modifiable) Set of features provided by the package.

fileIns
Answer a (modifiable) OrderedCollections of files that are to be filed-in to load the package. This is usually a subset of `files' and `builtFiles'.

files
Answer a (modifiable) OrderedCollection of files that are part of the package.

fullPathOf: fileName
Try appending 'self directory' and fileName to each of the directory in baseDirectories, and return the path to the first tried filename that exists. Raise a PackageNotAvailable exception if no directory is found that contains the file.

libraries
Answer a (modifiable) Set of shared library names that are required to load the package.

modules
Answer a (modifiable) Set of modules that are required to load the package.

namespace
Answer the namespace in which the package is loaded.

namespace: aString
Set to aString the namespace in which the package is loaded.

prerequisites
Answer a (modifiable) Set of prerequisites.

primFileIn
Private - File in the given package without paying attention at dependencies and C callout availability

relativeDirectory
Answer the directory, relative to the packages file, from which to load the package.

relativeDirectory: dir
Set the directory, relative to the packages file, from which to load the package, to dir.

startScript
Answer the start script for the package.

startScript: aString
Set the start script for the package to aString.

stopScript
Answer the start script for the package.

stopScript: aString
Set the stop script for the package to aString.

sunitScripts
Answer a (modifiable) OrderedCollection of SUnit scripts that compose the package's test suite.

test
Answer the test sub-package.

test: aPackage
Set the test sub-package to be aPackage.

url
Answer the URL at which the package repository can be found.

url: aString
Set to aString the URL at which the package repository can be found.

version
Not commented.

version: aVersion
Not commented.


1.125.4 Package: version parsing

parseVersion: aString
Not commented.



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


This document was generated on August, 19 2010 using texi2html