author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 24 Sep 2013 23:18:24 +0200 | |
branch | initialV |
changeset 1180 | 01c6be61f29c |
parent 229 | 5486be368577 |
permissions | -rw-r--r-- |
34 | 1 |
"/ |
2 |
"/ $Header$ |
|
3 |
"/ |
|
4 |
"/ loadAll-file to fileIn code for: stx:libjavascript |
|
5 |
"/ |
|
6 |
"/ Automatically generated from project definition. |
|
7 |
"/ DO NOT MODIFY THIS fILE; |
|
8 |
"/ modify the .prj file instead, and regenerate this file |
|
9 |
"/ with the ProjectBrowser tool. |
|
10 |
"/ |
|
11 |
||
12 |
"/ |
|
13 |
"/ Prerequisites: |
|
14 |
"/ |
|
15 |
! |
|
16 |
||
17 |
"{ package:'stx:libjavascript' }"! |
|
18 |
||
19 |
|files| |
|
20 |
||
21 |
'loading package stx:libjavascript ...' infoPrintCR. |
|
22 |
||
23 |
files := #( |
|
24 |
'JavaScriptEnvironment.st' |
|
25 |
'JavaScriptFunctionNode.st' |
|
179
3e871a0deddb
Cannot stc-compile JavaScriptEnvironment.st
Stefan Vogel <sv@exept.de>
parents:
34
diff
changeset
|
26 |
'JavaScriptVariableNode.st' |
34 | 27 |
'JavaScriptScanner.st' |
28 |
'JavaScriptParser.st' |
|
179
3e871a0deddb
Cannot stc-compile JavaScriptEnvironment.st
Stefan Vogel <sv@exept.de>
parents:
34
diff
changeset
|
29 |
'JavaScriptCompiler.st' |
3e871a0deddb
Cannot stc-compile JavaScriptEnvironment.st
Stefan Vogel <sv@exept.de>
parents:
34
diff
changeset
|
30 |
'JavaScriptSyntaxHighlighter.st' |
3e871a0deddb
Cannot stc-compile JavaScriptEnvironment.st
Stefan Vogel <sv@exept.de>
parents:
34
diff
changeset
|
31 |
'JavaScriptFunction.st' |
3e871a0deddb
Cannot stc-compile JavaScriptEnvironment.st
Stefan Vogel <sv@exept.de>
parents:
34
diff
changeset
|
32 |
'JavaScriptInnerFunctionNode.st' |
3e871a0deddb
Cannot stc-compile JavaScriptEnvironment.st
Stefan Vogel <sv@exept.de>
parents:
34
diff
changeset
|
33 |
'JavaScriptVariable.st' |
34 | 34 |
) asOrderedCollection. |
35 |
||
36 |
"/ see if there is a classLibrary |
|
229 | 37 |
(Smalltalk fileInClassLibrary:'libstx_libjavascript') ifTrue:[ |
34 | 38 |
|handle loaded| |
39 |
||
179
3e871a0deddb
Cannot stc-compile JavaScriptEnvironment.st
Stefan Vogel <sv@exept.de>
parents:
34
diff
changeset
|
40 |
handle := ObjectFileLoader loadedObjectHandles |
34 | 41 |
detect:[:h | h package = 'stx:libjavascript'] ifNone:nil. |
42 |
handle ifNotNil:[ |
|
43 |
loaded := Set new:(handle classes size). |
|
44 |
handle classes do:[:c| c isMeta ifFalse:[loaded add:c classFilename]]. |
|
229 | 45 |
files := files asOrderedCollection \ loaded. |
34 | 46 |
]. |
47 |
]. |
|
48 |
||
49 |
"/ load files which are not in the classLibrary (all if there is none) |
|
50 |
files size > 0 ifTrue:[ |
|
51 |
files do:[:f | |
|
52 |
'.' infoPrint. |
|
53 |
f asFilename exists ifTrue:[ |
|
54 |
Smalltalk fileIn:f. |
|
55 |
] ifFalse:[ |
|
56 |
Smalltalk fileIn:('source/' , f) |
|
57 |
] |
|
58 |
]. |
|
59 |
' ' infoPrintCR. |
|
60 |
]. |
|
229 | 61 |
'done (stx:libjavascript).' infoPrintCR. |