0
|
1 |
"/
|
|
2 |
"/ $Header: /opt/data/cvs/stx/goodies/xmlsuite/xpath/loadAll,v 1.18 2007-11-23 07:04:21 vranyj1 Exp $
|
|
3 |
"/
|
|
4 |
"/ loadAll-file to fileIn code for: stx:goodies/xmlsuite/xpath
|
|
5 |
"/
|
|
6 |
"/ Automatically generated by the browsers generate-loadAll function.
|
|
7 |
"/ DO NOT MODIFY THIS fILE;
|
|
8 |
"/
|
|
9 |
"/
|
|
10 |
"/ Prerequisites:
|
|
11 |
"/
|
|
12 |
"/ Smalltalk loadPackage:'module:directory'.
|
|
13 |
"/ Smalltalk loadPackage:'....'.
|
|
14 |
!
|
|
15 |
'Executing preLoad script if any...' infoPrintCR.
|
|
16 |
Smalltalk fileIn:'preLoad.st'.
|
|
17 |
!
|
|
18 |
"{ package:'stx:goodies/xmlsuite/xpath' }"
|
|
19 |
!
|
|
20 |
|
|
21 |
|files|
|
|
22 |
|
|
23 |
'loading package stx:goodies/xmlsuite/xpath...' infoPrintCR.
|
|
24 |
|
|
25 |
files := #(
|
|
26 |
'XMLv2__XPathASTNode.st'
|
|
27 |
'XMLv2__XPathContext.st'
|
|
28 |
'XMLv2__XPathCoverageMonitor.st'
|
|
29 |
'XMLv2__XPathDOMAdaptorXMLReader.st'
|
|
30 |
'XMLv2__XPathDocumentAdaptor.st'
|
|
31 |
'XMLv2__XPathDocumentAdaptorFactory.st'
|
|
32 |
'XMLv2__XPathDocumentAdaptorReleasedError.st'
|
|
33 |
'XMLv2__XPathDocumentAdaptorTests.st'
|
|
34 |
'XMLv2__XPathDocumentNotFoundError.st'
|
|
35 |
'XMLv2__XPathDocumentProvider.st'
|
|
36 |
'XMLv2__XPathExprTreeNode.st'
|
|
37 |
'XMLv2__XPathExpression.st'
|
|
38 |
'XMLv2__XPathExpressionOptimizer.st'
|
|
39 |
'XMLv2__XPathExpressionOptimizerTests.st'
|
|
40 |
'XMLv2__XPathInvalidNodeIdError.st'
|
|
41 |
'XMLv2__XPathLocationStep.st'
|
|
42 |
'XMLv2__XPathNodePosition.st'
|
|
43 |
'XMLv2__XPathNodePositionComparator.st'
|
|
44 |
'XMLv2__XPathNodeSet.st'
|
|
45 |
'XMLv2__XPathParser.st'
|
|
46 |
'XMLv2__XPathProcessor.st'
|
|
47 |
'XMLv2__XPathScanner.st'
|
|
48 |
'XMLv2__XPathTests.st'
|
|
49 |
'XMLv2__XPathAxis.st'
|
|
50 |
'XMLv2__XPathDOM3DocumentAdaptor.st'
|
|
51 |
'XMLv2__XPathDOM3DocumentAdaptorTests.st'
|
|
52 |
'XMLv2__XPathNodeTest.st'
|
|
53 |
'XMLv2__XPathPredicate.st'
|
|
54 |
'XMLv2__XPathSimpleDocumentProvider.st'
|
|
55 |
'XMLv2__XPathVWDocumentAdaptor.st'
|
|
56 |
'XMLv2__XPathAxisAncestor.st'
|
|
57 |
'XMLv2__XPathAxisAncestorOrSelf.st'
|
|
58 |
'XMLv2__XPathAxisAttribute.st'
|
|
59 |
'XMLv2__XPathAxisChild.st'
|
|
60 |
'XMLv2__XPathAxisDescendant.st'
|
|
61 |
'XMLv2__XPathAxisDescendantOrSelf.st'
|
|
62 |
'XMLv2__XPathAxisFollowing.st'
|
|
63 |
'XMLv2__XPathAxisFollowingSibling.st'
|
|
64 |
'XMLv2__XPathAxisParent.st'
|
|
65 |
'XMLv2__XPathAxisPreceding.st'
|
|
66 |
'XMLv2__XPathAxisPrecedingSibling.st'
|
|
67 |
'XMLv2__XPathAxisSelf.st'
|
|
68 |
'XMLv2__XPathKindTest.st'
|
|
69 |
'XMLv2__XPathNameTest.st'
|
|
70 |
'XMLv2__XPathAnyKindTest.st'
|
|
71 |
'XMLv2__XPathAttributeTest.st'
|
|
72 |
'XMLv2__XPathCommentTest.st'
|
|
73 |
'XMLv2__XPathDocumentTest.st'
|
|
74 |
'XMLv2__XPathElementTest.st'
|
|
75 |
'XMLv2__XPathProcessingInstructionTest.st'
|
|
76 |
'XMLv2__XPathTextTest.st'
|
|
77 |
'extensions.st'
|
|
78 |
|
|
79 |
) asOrderedCollection.
|
|
80 |
|
|
81 |
"/ see if there is a classLibrary
|
|
82 |
(Smalltalk fileInClassLibrary:'goodies/xmlsuite/xpath') ifTrue:[
|
|
83 |
|handle loaded|
|
|
84 |
|
|
85 |
handle := ObjectFileLoader loadedObjectHandles
|
|
86 |
detect:[:h | h package = 'stx:goodies/xmlsuite/xpath'] ifNone:nil.
|
|
87 |
handle ifNotNil:[
|
|
88 |
loaded := Set new:(handle classes size).
|
|
89 |
handle classes do:[:c| c isMeta ifFalse:[loaded add:c classFilename]].
|
|
90 |
files := files asOrderedCollection select:[:f| (loaded includes:f) not].
|
|
91 |
].
|
|
92 |
].
|
|
93 |
|
|
94 |
"/ load files which are not in the classLibrary (all if there is none)
|
|
95 |
files size > 0 ifTrue:[
|
|
96 |
ApplicationLoader::FileLoadingStartedEvent ifNotNil:[
|
|
97 |
ApplicationLoader::FileLoadingStartedEvent new
|
|
98 |
filenames:files;
|
|
99 |
raise
|
|
100 |
].
|
|
101 |
|
|
102 |
files do:[:f |
|
|
103 |
f asFilename exists ifTrue:[
|
|
104 |
Smalltalk fileIn:f.
|
|
105 |
ApplicationLoader::FileLoadedEvent ifNotNil:[
|
|
106 |
ApplicationLoader::FileLoadedEvent new
|
|
107 |
raise
|
|
108 |
] ifNil:[
|
|
109 |
'.' infoPrint.
|
|
110 |
]
|
|
111 |
] ifFalse:[
|
|
112 |
Smalltalk fileIn:('source/' , f).
|
|
113 |
ApplicationLoader::FileLoadedEvent ifNotNil:[
|
|
114 |
ApplicationLoader::FileLoadedEvent new
|
|
115 |
raise
|
|
116 |
] ifNil:[
|
|
117 |
'.' infoPrint.
|
|
118 |
]
|
|
119 |
]
|
|
120 |
|
|
121 |
].
|
|
122 |
ApplicationLoader::FileLoadingFinishedEvent ifNotNil:[
|
|
123 |
ApplicationLoader::FileLoadingFinishedEvent new
|
|
124 |
raise
|
|
125 |
].
|
|
126 |
|
|
127 |
|
|
128 |
' ' infoPrintCR.
|
|
129 |
].
|
|
130 |
' done (stx:goodies/xmlsuite/xpath).' infoPrintCR.
|
|
131 |
'Executing postLoad script if any...' infoPrintCR.
|
|
132 |
Smalltalk fileIn:'postLoad.st'.
|
|
133 |
!
|