1
|
1 |
"{ Package: 'stx:goodies/metacello' }"!
|
|
2 |
|
|
3 |
!Block methodsFor:'*metacello-core-scripting'!
|
|
4 |
|
|
5 |
execute: projectSpecBlock against: aScriptExecutor
|
|
6 |
aScriptExecutor executeBlock: self do: projectSpecBlock
|
|
7 |
! !
|
|
8 |
|
|
9 |
!Block methodsFor:'*metacello-core'!
|
|
10 |
|
|
11 |
setAuthorInMetacelloConfig: aMetacelloConfig
|
|
12 |
|
|
13 |
aMetacelloConfig setAuthorWithBlock: self
|
|
14 |
! !
|
|
15 |
|
|
16 |
!Block methodsFor:'*metacello-core'!
|
|
17 |
|
|
18 |
setBaseline: aString withInMetacelloConfig: aMetacelloConfig
|
|
19 |
aMetacelloConfig setBaseline: aString withBlock: self
|
|
20 |
! !
|
|
21 |
|
|
22 |
!Block methodsFor:'*metacello-core'!
|
|
23 |
|
|
24 |
setBlessingInMetacelloConfig: aMetacelloConfig
|
|
25 |
|
|
26 |
aMetacelloConfig setBlessingWithBlock: self
|
|
27 |
! !
|
|
28 |
|
|
29 |
!Block methodsFor:'*metacello-core'!
|
|
30 |
|
|
31 |
setConfiguration: aString withInMetacelloConfig: aMetacelloConfig
|
|
32 |
aMetacelloConfig setConfiguration: aString withBlock: self
|
|
33 |
! !
|
|
34 |
|
|
35 |
!Block methodsFor:'*metacello-core'!
|
|
36 |
|
|
37 |
setDescriptionInMetacelloConfig: aMetacelloConfig
|
|
38 |
|
|
39 |
aMetacelloConfig setDescriptionWithBlock: self
|
|
40 |
! !
|
|
41 |
|
|
42 |
!Block methodsFor:'*metacello-core'!
|
|
43 |
|
|
44 |
setPackage: aString withInMetacelloConfig: aMetacelloConfig
|
|
45 |
|
|
46 |
aMetacelloConfig setPackage: aString withBlock: self
|
|
47 |
! !
|
|
48 |
|
|
49 |
!Block methodsFor:'*metacello-core'!
|
|
50 |
|
|
51 |
setProject: aString withInMetacelloConfig: aMetacelloConfig
|
|
52 |
|
|
53 |
aMetacelloConfig setProject: aString withBlock: self
|
|
54 |
! !
|
|
55 |
|
|
56 |
!Block methodsFor:'*metacello-core'!
|
|
57 |
|
|
58 |
setTimestampInMetacelloConfig: aMetacelloConfig
|
|
59 |
|
|
60 |
aMetacelloConfig setTimestampWithBlock: self
|
|
61 |
! !
|
|
62 |
|
|
63 |
!Collection methodsFor:'*metacello-core'!
|
|
64 |
|
|
65 |
addToMetacelloPackages: aMetacelloPackagesSpec
|
|
66 |
|
|
67 |
self do: [:each | each addToMetacelloPackages: aMetacelloPackagesSpec ]
|
|
68 |
! !
|
|
69 |
|
|
70 |
!Collection methodsFor:'*metacello-core-scripting'!
|
|
71 |
|
|
72 |
execute: projectSpecBlock against: aScriptExecutor
|
|
73 |
aScriptExecutor executeCollection: self do: projectSpecBlock
|
|
74 |
! !
|
|
75 |
|
|
76 |
!Collection methodsFor:'*metacello-core'!
|
|
77 |
|
|
78 |
mergeIntoMetacelloPackages: aMetacelloPackagesSpec
|
|
79 |
|
|
80 |
self do: [:each | each mergeIntoMetacelloPackages: aMetacelloPackagesSpec ]
|
|
81 |
! !
|
|
82 |
|
|
83 |
!Collection methodsFor:'*metacello-core'!
|
|
84 |
|
|
85 |
removeFromMetacelloPackages: aMetacelloPackagesSpec
|
|
86 |
|
|
87 |
self do: [:each | each removeFromMetacelloPackages: aMetacelloPackagesSpec ]
|
|
88 |
! !
|
|
89 |
|
|
90 |
!Collection methodsFor:'*metacello-core'!
|
|
91 |
|
|
92 |
setIncludesInMetacelloPackage: aMetacelloPackageSpec
|
|
93 |
|
|
94 |
aMetacelloPackageSpec setIncludes: self asArray.
|
|
95 |
! !
|
|
96 |
|
|
97 |
!Collection methodsFor:'*metacello-core'!
|
|
98 |
|
|
99 |
setLoadsInMetacelloProject: aMetacelloPackageSpec
|
|
100 |
|
|
101 |
aMetacelloPackageSpec setLoads: self asArray.
|
|
102 |
! !
|
|
103 |
|
|
104 |
!Collection methodsFor:'*metacello-core'!
|
|
105 |
|
|
106 |
setRequiresInMetacelloPackage: aMetacelloPackageSpec
|
|
107 |
|
|
108 |
aMetacelloPackageSpec setRequires: self asArray.
|
|
109 |
! !
|
|
110 |
|
|
111 |
!Integer methodsFor:'*metacello-core'!
|
|
112 |
|
|
113 |
metacelloIntegerLessThanSelf: anInteger
|
|
114 |
|
|
115 |
^anInteger < self
|
|
116 |
! !
|
|
117 |
|
|
118 |
!Integer methodsFor:'*metacello-core'!
|
|
119 |
|
|
120 |
metacelloSemanticIntegerLessThanSelf: anInteger
|
|
121 |
^ anInteger < self
|
|
122 |
! !
|
|
123 |
|
|
124 |
!Integer methodsFor:'*metacello-core'!
|
|
125 |
|
|
126 |
metacelloSemanticStringLessThanSelf: aString
|
|
127 |
"string version components are always '<' integer component"
|
|
128 |
|
|
129 |
^ true
|
|
130 |
! !
|
|
131 |
|
|
132 |
!Integer methodsFor:'*metacello-core'!
|
|
133 |
|
|
134 |
metacelloSemanticVersionComponentLessThan: aMetacelloVersonComponent
|
|
135 |
^ aMetacelloVersonComponent metacelloSemanticIntegerLessThanSelf: self
|
|
136 |
! !
|
|
137 |
|
|
138 |
!Integer methodsFor:'*metacello-core'!
|
|
139 |
|
|
140 |
metacelloStringLessThanSelf: aString
|
|
141 |
"string version components are always '<' integer component"
|
|
142 |
|
|
143 |
^true
|
|
144 |
! !
|
|
145 |
|
|
146 |
!Integer methodsFor:'*metacello-core'!
|
|
147 |
|
|
148 |
metacelloVersionComponentLessThan: aMetacelloVersonComponent
|
|
149 |
|
|
150 |
^aMetacelloVersonComponent metacelloIntegerLessThanSelf: self
|
|
151 |
! !
|
|
152 |
|
|
153 |
!MCRepository methodsFor:'*metacello-core'!
|
|
154 |
|
|
155 |
flushForScriptGet
|
|
156 |
"noop"
|
|
157 |
|
|
158 |
|
|
159 |
! !
|
|
160 |
|
|
161 |
!Object methodsFor:'*metacello-core'!
|
|
162 |
|
|
163 |
metacelloIntegerLessThanSelf: anInteger
|
|
164 |
|
|
165 |
^self error: 'Invalid Metacello verson component - should be String or Integer.'
|
|
166 |
! !
|
|
167 |
|
|
168 |
!Object methodsFor:'*metacello-core'!
|
|
169 |
|
|
170 |
metacelloSemanticIntegerLessThanSelf: anInteger
|
|
171 |
^ self error: 'Invalid Metacello verson component - should be String or Integer.'
|
|
172 |
! !
|
|
173 |
|
|
174 |
!Object methodsFor:'*metacello-core'!
|
|
175 |
|
|
176 |
metacelloSemanticStringLessThanSelf: anInteger
|
|
177 |
^ self error: 'Invalid Metacello verson component - should be String or Integer.'
|
|
178 |
! !
|
|
179 |
|
|
180 |
!Object methodsFor:'*metacello-core'!
|
|
181 |
|
|
182 |
metacelloSemanticVersionComponentLessThan: aMetacelloVersonComponent
|
|
183 |
^ self error: 'Invalid Metacello verson component - should be String or Integer.'
|
|
184 |
! !
|
|
185 |
|
|
186 |
!Object methodsFor:'*metacello-core'!
|
|
187 |
|
|
188 |
metacelloStringLessThanSelf: anInteger
|
|
189 |
|
|
190 |
^self error: 'Invalid Metacello verson component - should be String or Integer.'
|
|
191 |
! !
|
|
192 |
|
|
193 |
!Object methodsFor:'*metacello-core'!
|
|
194 |
|
|
195 |
metacelloVersionComponentLessThan: aMetacelloVersonComponent
|
|
196 |
|
|
197 |
^self error: 'Invalid Metacello verson component - should be String or Integer.'
|
|
198 |
! !
|
|
199 |
|
|
200 |
!String methodsFor:'*metacello-core'!
|
|
201 |
|
|
202 |
addToMetacelloPackages: aMetacelloPackagesSpec
|
|
203 |
|
|
204 |
| spec |
|
|
205 |
spec :=
|
|
206 |
(aMetacelloPackagesSpec project packageSpec)
|
|
207 |
file: self;
|
|
208 |
yourself.
|
|
209 |
aMetacelloPackagesSpec addMember:
|
|
210 |
(aMetacelloPackagesSpec addMember
|
|
211 |
name: spec name;
|
|
212 |
spec: spec;
|
|
213 |
yourself)
|
|
214 |
! !
|
|
215 |
|
|
216 |
!String methodsFor:'*metacello-core'!
|
|
217 |
|
|
218 |
asMetacelloSemanticVersionNumber
|
|
219 |
^ MetacelloSemanticVersionNumber fromString: self
|
|
220 |
! !
|
|
221 |
|
|
222 |
!String methodsFor:'*metacello-core'!
|
|
223 |
|
|
224 |
asMetacelloVersionNumber
|
|
225 |
|
|
226 |
^MetacelloVersionNumber fromString: self
|
|
227 |
! !
|
|
228 |
|
|
229 |
!String methodsFor:'*metacello-core-scripting'!
|
|
230 |
|
|
231 |
execute: projectSpecBlock against: aScriptExecutor
|
|
232 |
aScriptExecutor executeString: self do: projectSpecBlock
|
|
233 |
! !
|
|
234 |
|
|
235 |
!String methodsFor:'*metacello-core'!
|
|
236 |
|
|
237 |
mergeIntoMetacelloPackages: aMetacelloPackagesSpec
|
|
238 |
|
|
239 |
| spec |
|
|
240 |
spec :=
|
|
241 |
(aMetacelloPackagesSpec project packageSpec)
|
|
242 |
file: self;
|
|
243 |
yourself.
|
|
244 |
aMetacelloPackagesSpec addMember:
|
|
245 |
(aMetacelloPackagesSpec mergeMember
|
|
246 |
name: spec name;
|
|
247 |
spec: spec;
|
|
248 |
yourself)
|
|
249 |
! !
|
|
250 |
|
|
251 |
!String methodsFor:'*metacello-core-version comparison'!
|
|
252 |
|
|
253 |
metacelloIntegerLessThanSelf: anInteger
|
|
254 |
"integer version components are always '>' string component"
|
|
255 |
|
|
256 |
^false
|
|
257 |
! !
|
|
258 |
|
|
259 |
!String methodsFor:'*metacello-core-version comparison'!
|
|
260 |
|
|
261 |
metacelloSemanticIntegerLessThanSelf: anInteger
|
|
262 |
"integer version components are always '>' string component"
|
|
263 |
|
|
264 |
^ true
|
|
265 |
! !
|
|
266 |
|
|
267 |
!String methodsFor:'*metacello-core-version comparison'!
|
|
268 |
|
|
269 |
metacelloSemanticStringLessThanSelf: aString
|
|
270 |
^ aString < self
|
|
271 |
! !
|
|
272 |
|
|
273 |
!String methodsFor:'*metacello-core-version comparison'!
|
|
274 |
|
|
275 |
metacelloSemanticVersionComponentLessThan: aMetacelloVersonComponent
|
|
276 |
^ aMetacelloVersonComponent metacelloSemanticStringLessThanSelf: self
|
|
277 |
! !
|
|
278 |
|
|
279 |
!String methodsFor:'*metacello-core-version comparison'!
|
|
280 |
|
|
281 |
metacelloStringLessThanSelf: aString
|
|
282 |
|
|
283 |
^aString < self
|
|
284 |
! !
|
|
285 |
|
|
286 |
!String methodsFor:'*metacello-core-version comparison'!
|
|
287 |
|
|
288 |
metacelloVersionComponentLessThan: aMetacelloVersonComponent
|
|
289 |
|
|
290 |
^aMetacelloVersonComponent metacelloStringLessThanSelf: self
|
|
291 |
! !
|
|
292 |
|
|
293 |
!String methodsFor:'*metacello-core'!
|
|
294 |
|
|
295 |
removeFromMetacelloPackages: aMetacelloPackagesSpec
|
|
296 |
|
|
297 |
aMetacelloPackagesSpec addMember:
|
|
298 |
(aMetacelloPackagesSpec removeMember
|
|
299 |
name: self;
|
|
300 |
yourself)
|
|
301 |
! !
|
|
302 |
|
|
303 |
!String methodsFor:'*metacello-core'!
|
|
304 |
|
|
305 |
setAuthorInMetacelloConfig: aMetacelloConfig
|
|
306 |
|
|
307 |
aMetacelloConfig setAuthorWithString: self
|
|
308 |
! !
|
|
309 |
|
|
310 |
!String methodsFor:'*metacello-core'!
|
|
311 |
|
|
312 |
setAuthorInMetacelloVersion: aMetacelloVersionSpec
|
|
313 |
|
|
314 |
aMetacelloVersionSpec setAuthor:
|
|
315 |
(aMetacelloVersionSpec project valueHolderSpec
|
|
316 |
value: self;
|
|
317 |
yourself)
|
|
318 |
! !
|
|
319 |
|
|
320 |
!String methodsFor:'*metacello-core'!
|
|
321 |
|
|
322 |
setBlessingInMetacelloConfig: aMetacelloConfig
|
|
323 |
|
|
324 |
aMetacelloConfig setBlessingWithString: self
|
|
325 |
! !
|
|
326 |
|
|
327 |
!String methodsFor:'*metacello-core'!
|
|
328 |
|
|
329 |
setBlessingInMetacelloVersion: aMetacelloVersionSpec
|
|
330 |
|
|
331 |
aMetacelloVersionSpec setBlessing:
|
|
332 |
(aMetacelloVersionSpec project valueHolderSpec
|
|
333 |
value: self;
|
|
334 |
yourself)
|
|
335 |
! !
|
|
336 |
|
|
337 |
!String methodsFor:'*metacello-core'!
|
|
338 |
|
|
339 |
setDescriptionInMetacelloConfig: aMetacelloConfig
|
|
340 |
|
|
341 |
aMetacelloConfig setDescriptionWithString: self
|
|
342 |
! !
|
|
343 |
|
|
344 |
!String methodsFor:'*metacello-core'!
|
|
345 |
|
|
346 |
setDescriptionInMetacelloVersion: aMetacelloVersionSpec
|
|
347 |
|
|
348 |
aMetacelloVersionSpec setDescription:
|
|
349 |
(aMetacelloVersionSpec project valueHolderSpec
|
|
350 |
value: self;
|
|
351 |
yourself)
|
|
352 |
! !
|
|
353 |
|
|
354 |
!String methodsFor:'*metacello-core'!
|
|
355 |
|
|
356 |
setIncludesInMetacelloPackage: aMetacelloPackageSpec
|
|
357 |
|
|
358 |
aMetacelloPackageSpec setIncludes: { self }.
|
|
359 |
! !
|
|
360 |
|
|
361 |
!String methodsFor:'*metacello-core'!
|
|
362 |
|
|
363 |
setLoadsInMetacelloProject: aMetacelloPackageSpec
|
|
364 |
|
|
365 |
aMetacelloPackageSpec setLoads: { self }.
|
|
366 |
! !
|
|
367 |
|
|
368 |
!String methodsFor:'*metacello-core'!
|
|
369 |
|
|
370 |
setPackage: aString withInMetacelloConfig: aMetacelloConfig
|
|
371 |
|
|
372 |
aMetacelloConfig setPackage: aString withString: self
|
|
373 |
! !
|
|
374 |
|
|
375 |
!String methodsFor:'*metacello-core'!
|
|
376 |
|
|
377 |
setPostLoadDoItInMetacelloSpec: aMetacelloSpec
|
|
378 |
self asSymbol setPostLoadDoItInMetacelloSpec: aMetacelloSpec
|
|
379 |
! !
|
|
380 |
|
|
381 |
!String methodsFor:'*metacello-core'!
|
|
382 |
|
|
383 |
setPreLoadDoItInMetacelloSpec: aMetacelloSpec
|
|
384 |
self asSymbol setPreLoadDoItInMetacelloSpec: aMetacelloSpec
|
|
385 |
! !
|
|
386 |
|
|
387 |
!String methodsFor:'*metacello-core'!
|
|
388 |
|
|
389 |
setProject: aString withInMetacelloConfig: aMetacelloConfig
|
|
390 |
|
|
391 |
aMetacelloConfig setProject: aString withString: self
|
|
392 |
! !
|
|
393 |
|
|
394 |
!String methodsFor:'*metacello-core'!
|
|
395 |
|
|
396 |
setRequiresInMetacelloPackage: aMetacelloPackageSpec
|
|
397 |
|
|
398 |
aMetacelloPackageSpec setRequires: { self }.
|
|
399 |
! !
|
|
400 |
|
|
401 |
!String methodsFor:'*metacello-core'!
|
|
402 |
|
|
403 |
setTimestampInMetacelloConfig: aMetacelloConfig
|
|
404 |
|
|
405 |
aMetacelloConfig setTimestampWithString: self
|
|
406 |
! !
|
|
407 |
|
|
408 |
!String methodsFor:'*metacello-core'!
|
|
409 |
|
|
410 |
setTimestampInMetacelloVersion: aMetacelloVersionSpec
|
|
411 |
|
|
412 |
aMetacelloVersionSpec setTimestamp:
|
|
413 |
(aMetacelloVersionSpec project valueHolderSpec
|
|
414 |
value: self;
|
|
415 |
yourself)
|
|
416 |
! !
|
|
417 |
|
|
418 |
!Symbol methodsFor:'*metacello-core'!
|
|
419 |
|
|
420 |
setPostLoadDoItInMetacelloSpec: aMetacelloSpec
|
|
421 |
self precedence == 0
|
|
422 |
ifTrue: [ self error: 'Invalid selector' ].
|
|
423 |
aMetacelloSpec
|
|
424 |
setPostLoadDoIt:
|
|
425 |
(aMetacelloSpec project valueHolderSpec
|
|
426 |
value: self;
|
|
427 |
yourself)
|
|
428 |
! !
|
|
429 |
|
|
430 |
!Symbol methodsFor:'*metacello-core'!
|
|
431 |
|
|
432 |
setPreLoadDoItInMetacelloSpec: aMetacelloSpec
|
|
433 |
self precedence == 0
|
|
434 |
ifTrue: [ self error: 'Invalid selector' ].
|
|
435 |
aMetacelloSpec
|
|
436 |
setPreLoadDoIt:
|
|
437 |
(aMetacelloSpec project valueHolderSpec
|
|
438 |
value: self;
|
|
439 |
yourself)
|
|
440 |
! !
|
|
441 |
|
|
442 |
!Timestamp methodsFor:'*metacello-core'!
|
|
443 |
|
|
444 |
setTimestampInMetacelloConfig: aMetacelloConfig
|
|
445 |
aMetacelloConfig setTimestampWithString: self printString
|
|
446 |
! !
|
|
447 |
|
|
448 |
!Timestamp methodsFor:'*metacello-core'!
|
|
449 |
|
|
450 |
setTimestampInMetacelloVersion: aMetacelloVersionSpec
|
|
451 |
|
|
452 |
aMetacelloVersionSpec setTimestamp:
|
|
453 |
(aMetacelloVersionSpec project valueHolderSpec
|
|
454 |
value: self printString;
|
|
455 |
yourself)
|
|
456 |
! !
|
|
457 |
|
|
458 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
459 |
|
|
460 |
asMetacelloSemanticVersionNumber
|
|
461 |
^ MetacelloSemanticVersionNumber fromString: ''
|
|
462 |
! !
|
|
463 |
|
|
464 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
465 |
|
|
466 |
asMetacelloVersionNumber
|
|
467 |
|
|
468 |
^MetacelloVersionNumber fromString: ''
|
|
469 |
! !
|
|
470 |
|
|
471 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
472 |
|
|
473 |
metacelloRegistrationHash
|
|
474 |
^ self hash
|
|
475 |
! !
|
|
476 |
|
|
477 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
478 |
|
|
479 |
registrationsCompareEqual: aMetacelloProjectSpec
|
|
480 |
^ self = aMetacelloProjectSpec
|
|
481 |
! !
|
|
482 |
|
|
483 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
484 |
|
|
485 |
setAuthorInMetacelloVersion: aMetacelloVersionSpec
|
|
486 |
|
|
487 |
aMetacelloVersionSpec setAuthor: self
|
|
488 |
! !
|
|
489 |
|
|
490 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
491 |
|
|
492 |
setBlessingInMetacelloVersion: aMetacelloVersionSpec
|
|
493 |
|
|
494 |
aMetacelloVersionSpec setBlessing: self
|
|
495 |
! !
|
|
496 |
|
|
497 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
498 |
|
|
499 |
setDescriptionInMetacelloVersion: aMetacelloVersionSpec
|
|
500 |
|
|
501 |
aMetacelloVersionSpec setDescription: self
|
|
502 |
! !
|
|
503 |
|
|
504 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
505 |
|
|
506 |
setPostLoadDoItInMetacelloSpec: aMetacelloSpec
|
|
507 |
|
|
508 |
aMetacelloSpec setPostLoadDoIt:
|
|
509 |
(aMetacelloSpec project valueHolderSpec
|
|
510 |
value: self;
|
|
511 |
yourself)
|
|
512 |
! !
|
|
513 |
|
|
514 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
515 |
|
|
516 |
setPreLoadDoItInMetacelloSpec: aMetacelloSpec
|
|
517 |
|
|
518 |
aMetacelloSpec setPreLoadDoIt:
|
|
519 |
(aMetacelloSpec project valueHolderSpec
|
|
520 |
value: self;
|
|
521 |
yourself)
|
|
522 |
! !
|
|
523 |
|
|
524 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
525 |
|
|
526 |
setProject: aString withInMetacelloConfig: aMetacelloConfig
|
|
527 |
|
|
528 |
aMetacelloConfig setProject: aString withString: self
|
|
529 |
! !
|
|
530 |
|
|
531 |
!UndefinedObject methodsFor:'*metacello-core'!
|
|
532 |
|
|
533 |
setTimestampInMetacelloVersion: aMetacelloVersionSpec
|
|
534 |
|
|
535 |
aMetacelloVersionSpec setTimestamp: self
|
|
536 |
! !
|
|
537 |
|
|
538 |
!stx_goodies_metacello class methodsFor:'documentation'!
|
|
539 |
|
|
540 |
extensionsVersion_SVN
|
|
541 |
^ '$Id:: $'
|
|
542 |
! ! |