author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sat, 09 Jan 2010 12:08:46 +0000 | |
changeset 173 | 738b801e1a58 |
parent 123 | 679becd265ea |
child 177 | 3362fc45bbfd |
permissions | -rw-r--r-- |
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
"{ Package: 'stx:goodies/xmlsuite/xmlreaderimpl' }" |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
3 |
LibraryDefinition subclass:#stx_goodies_xmlsuite_xmlreaderimpl |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
4 |
instanceVariableNames:'' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
5 |
classVariableNames:'' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
6 |
poolDictionaries:'' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
7 |
category:'* Projects & Packages *' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
8 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
9 |
|
122 | 10 |
|
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
11 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description'! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
12 |
|
76 | 13 |
postLoadAction |
14 |
||
81
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
15 |
| packageDir expatXMLReaderLib | |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
16 |
packageDir := Smalltalk getPackageDirectoryForPackage: self package. |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
17 |
|
84
938f18ef8d6e
Loading of precompiled binary classes reworked, now it should no longer cause segfault on image restart
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
18 |
expatXMLReaderLib := ((packageDir construct: 'precompiled') construct: Smalltalk versionString) construct: |
81
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
19 |
('XMLv2__ExpatXMLReader' , |
84
938f18ef8d6e
Loading of precompiled binary classes reworked, now it should no longer cause segfault on image restart
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
20 |
ObjectFileLoader sharedLibraryExtension). |
81
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
21 |
expatXMLReaderLib exists ifFalse: |
84
938f18ef8d6e
Loading of precompiled binary classes reworked, now it should no longer cause segfault on image restart
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
81
diff
changeset
|
22 |
[expatXMLReaderLib := ((packageDir construct: 'precompiled') construct: 'common') construct: |
81
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
23 |
('XMLv2__ExpatXMLReader' , |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
24 |
ObjectFileLoader sharedLibraryExtension)]. |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
25 |
expatXMLReaderLib exists ifTrue: |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
26 |
[Transcript showCR:'Loading precompiled ExpatXMLReader class from: ' , expatXMLReaderLib nameString. |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
27 |
ObjectFileLoader loadObjectFile: expatXMLReaderLib nameString]. |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
28 |
|
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
29 |
" |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
30 |
self postLoadAction |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
31 |
" |
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
32 |
|
8fa696900058
stx_goodies_xmlsuite_xmlreaderimpl>>postLoadAction restored as of r71
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
80
diff
changeset
|
33 |
"Modified: / 25-03-2009 / 13:46:27 / Martin Plicka <plickm1@fel.cvut.cz>" |
76 | 34 |
|
35 |
! |
|
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
36 |
|
122 | 37 |
preLoadAction |
38 |
ObjectFileLoader searchedLibraries: |
|
39 |
(ObjectFileLoader searchedLibraries asOrderedCollection |
|
40 |
add: '/usr/lib/libexpat.so'; |
|
41 |
yourself) asArray |
|
42 |
||
43 |
! |
|
44 |
||
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
45 |
preRequisites |
173 | 46 |
"list all required packages. |
47 |
This list can be maintained manually or (better) generated and |
|
48 |
updated by scanning the superclass hierarchies and looking for |
|
49 |
global variable accesses. (the browser has a menu function for that) |
|
50 |
Howevery, often too much is found, and you may want to explicitely |
|
51 |
exclude individual packages in the #excludedFromPrerequisites method." |
|
52 |
||
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
53 |
^ #( |
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
54 |
#'stx:goodies/xml/vw' "XML::XMLParser - superclass of XMLv2::VWXMLReader::XMLParser " |
76 | 55 |
#'stx:goodies/xmlsuite/core' "XMLv2::XMLReader - superclass of XMLv2::ExpatXMLReader " |
16
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
56 |
#'stx:libbasic' "Object - superclass of XMLv2::VWXMLReader " |
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
57 |
#'stx:libcomp' "ObjectFileLoader - referenced by stx_goodies_xmlsuite_xmlreaderimpl class>>preLoadAction " |
1bda271d9ca2
fixed namespace parsing in VWXMLReader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
9
diff
changeset
|
58 |
) |
173 | 59 |
! ! |
76 | 60 |
|
173 | 61 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - compilation'! |
62 |
||
63 |
additionalLinkLibraries_make_dot_proto |
|
64 |
"allows for additional static libraries to be added to the make.proto file." |
|
65 |
||
66 |
^ 'support/expat-2.0.1/build/lib/libexpat.a' |
|
67 |
||
68 |
"Created: / 22-08-2006 / 23:53:33 / cg" |
|
69 |
! |
|
70 |
||
71 |
additionalRules_make_dot_proto |
|
72 |
"allows for additional rules to be added to the make.proto file." |
|
73 |
||
74 |
^ ' |
|
75 |
support/expat-2.0.1/build/lib/libexpat.a: |
|
76 |
mkdir support/expat-2.0.1/build && cd support/expat-2.0.1/build && CFLAGS=-m32 ../configure --prefix=$$PWD |
|
77 |
$(MAKE) -C support/expat-2.0.1/build |
|
78 |
$(MAKE) -C support/expat-2.0.1/build install |
|
79 |
' |
|
80 |
||
81 |
"Created: / 22-08-2006 / 23:59:16 / cg" |
|
82 |
! |
|
83 |
||
84 |
additionalTargets_make_dot_proto |
|
85 |
"allows for additional targets to be added to the make.proto file." |
|
86 |
||
87 |
^ 'support/expat-2.0.1/build/lib/libexpat.a' |
|
88 |
||
89 |
"Created: / 22-08-2006 / 23:53:33 / cg" |
|
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
90 |
! ! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
91 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
92 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - contents'! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
93 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
94 |
classNamesAndAttributes |
173 | 95 |
"lists the classes which are to be included in the project. |
96 |
Each entry in the list may be: a single class-name (symbol), |
|
97 |
or an array-literal consisting of class name and attributes. |
|
98 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
99 |
||
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
100 |
^ #( |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
101 |
"<className> or (<className> attributes...) in load order" |
76 | 102 |
(#'XMLv2::ExpatXMLReader' autoload) |
122 | 103 |
(#'XMLv2::XercesCXMLReader' autoload) |
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
104 |
#'XMLv2::VWSAXBuilder' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
105 |
#'XMLv2::VWXMLReader' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
106 |
#'stx_goodies_xmlsuite_xmlreaderimpl' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
107 |
) |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
108 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
109 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
110 |
extensionMethodNames |
173 | 111 |
"lists the extension methods which are to be included in the project. |
112 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
113 |
||
4
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
114 |
^ #( |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
115 |
) |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
116 |
! ! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
117 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
118 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - project information'! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
119 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
120 |
companyName |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
121 |
"Return a companyname which will appear in <lib>.rc" |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
122 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
123 |
^ 'eXept Software AG' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
124 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
125 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
126 |
description |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
127 |
"Return a description string which will appear in vc.def / bc.def" |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
128 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
129 |
^ 'Smalltalk/X Class library' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
130 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
131 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
132 |
legalCopyright |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
133 |
"Return a copyright string which will appear in <lib>.rc" |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
134 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
135 |
^ 'Copyright Claus Gittinger 1988-2008\nCopyright eXept Software AG 1998-2008' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
136 |
! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
137 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
138 |
productName |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
139 |
"Return a product name which will appear in <lib>.rc" |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
140 |
|
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
141 |
^ 'Smalltalk/X' |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
142 |
! ! |
9bcb9d9f5d25
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
143 |
|
122 | 144 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'description - svn'! |
145 |
||
146 |
svnRevisionNr |
|
147 |
"Return a SVN revision number of myself. |
|
148 |
This number is updated after a commit" |
|
149 |
||
173 | 150 |
^ "$SVN-Revision:"'172'"$" |
122 | 151 |
! ! |
152 |
||
153 |
!stx_goodies_xmlsuite_xmlreaderimpl class methodsFor:'documentation'! |
|
154 |
||
155 |
version |
|
156 |
^'$Id$' |
|
173 | 157 |
! |
158 |
||
159 |
version_SVN |
|
160 |
^ '$Id$' |
|
122 | 161 |
! ! |