752
|
1 |
"{ Package: 'stx:libjava' }"
|
|
2 |
|
|
3 |
LibraryDefinition subclass:#stx_libjava
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'* Projects & Packages *'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
756
|
11 |
!stx_libjava class methodsFor:'accessing'!
|
|
12 |
|
|
13 |
svnRepositoryUrlBase
|
|
14 |
|
|
15 |
| url |
|
|
16 |
url := stx_libjava svnRepositoryUrl.
|
|
17 |
url ifNil:[url := 'https://swing.fit.cvut.cz/svn/stx/libjava/trunk/src'].
|
|
18 |
(url endsWith: 'src') ifTrue:[url := url copyTo: url size - 4].
|
|
19 |
^url
|
|
20 |
|
|
21 |
"Created: / 08-04-2011 / 16:57:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
22 |
! !
|
|
23 |
|
752
|
24 |
|
|
25 |
!stx_libjava class methodsFor:'description'!
|
|
26 |
|
|
27 |
excludedFromPreRequisites
|
|
28 |
"list all packages which should be ignored in the automatic
|
|
29 |
preRequisites scan. See #preRequisites for more."
|
|
30 |
|
|
31 |
^ #(
|
|
32 |
)
|
|
33 |
!
|
|
34 |
|
|
35 |
preRequisites
|
|
36 |
"list all required packages.
|
|
37 |
This list can be maintained manually or (better) generated and
|
|
38 |
updated by scanning the superclass hierarchies and looking for
|
|
39 |
global variable accesses. (the browser has a menu function for that)
|
|
40 |
Howevery, often too much is found, and you may want to explicitely
|
|
41 |
exclude individual packages in the #excludedFromPrerequisites method."
|
|
42 |
|
|
43 |
^ #(
|
|
44 |
#'squeak:petitparser' "PPParser - superclass of JavaParser::BlockParser "
|
763
|
45 |
#'stx:goodies/sunit' "TestAsserter - superclass of JUnitTestCaseProxy "
|
752
|
46 |
#'stx:libbasic' "Object - superclass of JavaUnresolvedFieldrefConstant "
|
|
47 |
#'stx:libbasic2' "ZipArchive - referenced by Java class>>classSource:package:in: "
|
|
48 |
#'stx:libbasic3' "MessageTracer - referenced by JavaMethod>>setBreakPoint "
|
|
49 |
#'stx:libcomp' "Parser - referenced by JavaClass>>evaluatorClass "
|
|
50 |
#'stx:libhtml' "URL - referenced by JavaEmbeddedFrameView>>setupAppletFrameIn:initializeJava: "
|
|
51 |
#'stx:libtool' "DebugView - referenced by Java class>>flushClasses "
|
763
|
52 |
#'stx:libview' "DisplaySurface - superclass of JavaView "
|
752
|
53 |
#'stx:libview2' "Plug - referenced by JavaSourceCodeCache>>findMethodLine:inMethods: "
|
|
54 |
#'stx:libwidg' "Label - referenced by JavaVM class>>processEvent: "
|
754
|
55 |
#'stx:libwidg2' "MenuPanel - referenced by JavaVM class>>processEvent: "
|
752
|
56 |
)
|
|
57 |
! !
|
|
58 |
|
|
59 |
!stx_libjava class methodsFor:'description - contents'!
|
|
60 |
|
|
61 |
classNamesAndAttributes
|
|
62 |
"lists the classes which are to be included in the project.
|
|
63 |
Each entry in the list may be: a single class-name (symbol),
|
|
64 |
or an array-literal consisting of class name and attributes.
|
|
65 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..."
|
|
66 |
|
|
67 |
^ #(
|
|
68 |
"<className> or (<className> attributes...) in load order"
|
|
69 |
Byte
|
|
70 |
(JUnitTestCaseProxy autoload)
|
|
71 |
Java
|
|
72 |
JavaAnnotation
|
|
73 |
JavaAnnotationContainer
|
|
74 |
JavaAnnotationDefault
|
|
75 |
JavaAnnotationDictionary
|
|
76 |
JavaAnnotationValue
|
|
77 |
JavaArray
|
|
78 |
JavaBehavior
|
|
79 |
(JavaByteCodeDisassemblerTests autoload)
|
|
80 |
(JavaByteCodeInterpreterTests autoload)
|
|
81 |
JavaByteCodeProcessor
|
|
82 |
(JavaByteCodeProcessorTests autoload)
|
|
83 |
JavaClassReader
|
|
84 |
(JavaClassReaderTests autoload)
|
761
|
85 |
(JavaClassRefTests autoload)
|
752
|
86 |
JavaConstantPool
|
758
|
87 |
(JavaConstantPoolsTests autoload)
|
752
|
88 |
JavaContext
|
|
89 |
JavaDecompiler
|
|
90 |
JavaDescriptor
|
|
91 |
JavaError
|
|
92 |
JavaExceptionTableEntry
|
761
|
93 |
(JavaExceptionThrowerMock autoload)
|
|
94 |
(JavaFieldRefTests autoload)
|
752
|
95 |
(JavaInitializedResource autoload)
|
761
|
96 |
(JavaInterfaceMethodRefTests autoload)
|
752
|
97 |
(JavaJUnitTests autoload)
|
|
98 |
JavaJavadocNode
|
|
99 |
JavaLanguage
|
754
|
100 |
JavaLibraries
|
756
|
101 |
(JavaLibrariesResource autoload)
|
752
|
102 |
JavaLocalVariableTable
|
|
103 |
JavaLocalVariableTableEntry
|
|
104 |
JavaLookup
|
761
|
105 |
(JavaLookupTestsResource autoload)
|
752
|
106 |
JavaMethod
|
761
|
107 |
(JavaMethodRefTests autoload)
|
752
|
108 |
JavaNameAndType2
|
|
109 |
JavaNameandType
|
|
110 |
JavaNativeMemory
|
|
111 |
JavaNode
|
|
112 |
JavaObject
|
|
113 |
JavaObjectDictionary
|
|
114 |
JavaParseResult
|
|
115 |
(JavaParserNavigationTests autoload)
|
|
116 |
(JavaParserTestCase autoload)
|
|
117 |
(JavaParserTests autoload)
|
|
118 |
JavaPopUpView
|
|
119 |
JavaProcess
|
|
120 |
JavaRef
|
|
121 |
JavaRef2
|
761
|
122 |
(JavaRefMock autoload)
|
|
123 |
(JavaRefTests autoload)
|
752
|
124 |
JavaRelease
|
758
|
125 |
JavaResolver
|
|
126 |
(JavaResolverTests autoload)
|
752
|
127 |
(JavaRuntimeConstantPoolTests autoload)
|
|
128 |
JavaSlotIndexCache
|
|
129 |
JavaSourceCodeCache
|
|
130 |
JavaSourceFileWriter
|
|
131 |
JavaStartup
|
763
|
132 |
JavaTestsLoader
|
752
|
133 |
(JavaTestsResource autoload)
|
|
134 |
JavaTopView
|
|
135 |
(JavaUTF8Tests autoload)
|
|
136 |
JavaUnresolvedConstant
|
|
137 |
JavaVM
|
|
138 |
JavaView
|
761
|
139 |
(LookupTests autoload)
|
752
|
140 |
PPJavaNode
|
|
141 |
Short
|
|
142 |
SmalltalkAppletContext
|
|
143 |
SmalltalkAppletStub
|
761
|
144 |
(TestletTestCaseProxy autoload)
|
752
|
145 |
#'stx_libjava'
|
|
146 |
JavaAnnotationArrayValue
|
|
147 |
JavaAnnotationClassValue
|
|
148 |
JavaAnnotationEnumValue
|
|
149 |
JavaAnnotationNestedAnnotationValue
|
|
150 |
JavaAnnotationPrimitiveValue
|
|
151 |
JavaByteCodeDisassembler
|
|
152 |
JavaByteCodeEnumerator
|
|
153 |
JavaByteCodeInterpreter
|
|
154 |
JavaClass
|
|
155 |
JavaClassAnnotationContainer
|
|
156 |
JavaClassContentRef2
|
|
157 |
JavaClassRef
|
|
158 |
JavaClassRef2
|
|
159 |
JavaEmbeddedFrameView
|
|
160 |
JavaField
|
|
161 |
JavaFieldAnnotationContainer
|
|
162 |
JavaFieldDescriptor
|
|
163 |
JavaFieldref
|
|
164 |
JavaFormalParameterNode
|
|
165 |
JavaMethodAnnotationContainer
|
|
166 |
JavaMethodDeclarationNode
|
|
167 |
JavaMethodDeclaratorNode
|
|
168 |
JavaMethodDescriptor
|
|
169 |
JavaMethodNode
|
|
170 |
JavaMethodWithException
|
|
171 |
JavaMethodref
|
|
172 |
JavaParser
|
|
173 |
JavaTypeNode
|
|
174 |
JavaUnhandledExceptionError
|
|
175 |
JavaUnresolvedClassConstant
|
|
176 |
JavaUnresolvedNameandTypeConstant
|
|
177 |
JavaUnresolvedRefConstant
|
|
178 |
JavaUnresolvedStringConstant
|
|
179 |
JavadocDeclarationNode
|
|
180 |
JavaArrayTypeNode
|
|
181 |
JavaBooleanTypeNode
|
|
182 |
JavaBuiltInClassPointerRef
|
|
183 |
JavaByteCodeSteppableInterpreter
|
|
184 |
JavaCharTypeNode
|
|
185 |
JavaClassOrInterfaceTypeNode
|
|
186 |
JavaClassPointerRef
|
|
187 |
JavaDoubleTypeNode
|
|
188 |
JavaFieldRef2
|
|
189 |
JavaFloatTypeNode
|
|
190 |
JavaIntTypeNode
|
|
191 |
JavaInterfaceMethodref
|
|
192 |
JavaLongTypeNode
|
|
193 |
JavaMethodRef2
|
|
194 |
JavaMethodWithHandler
|
|
195 |
JavaUnresolvedFieldrefConstant
|
|
196 |
JavaUnresolvedMethodrefConstant
|
|
197 |
JavaVoidTypeNode
|
|
198 |
JavaArrayClassPointerRef
|
761
|
199 |
JavaInterfaceMethodRef2
|
752
|
200 |
JavaNativeMethod
|
|
201 |
JavaUnresolvedInterfaceMethodrefConstant
|
|
202 |
)
|
|
203 |
!
|
|
204 |
|
|
205 |
extensionMethodNames
|
|
206 |
"lists the extension methods which are to be included in the project.
|
|
207 |
Entries are 2-element array literals, consisting of class-name and selector."
|
|
208 |
|
|
209 |
^ #(
|
|
210 |
BooleanArray isJavaArrayClass
|
|
211 |
ByteArray isJavaArrayClass
|
|
212 |
DoubleArray isJavaArrayClass
|
|
213 |
FloatArray isJavaArrayClass
|
|
214 |
Object isJavaArray
|
758
|
215 |
Object isJavaRef
|
752
|
216 |
String asArrayOfSubstringsSeparatedBy:
|
763
|
217 |
UserPreferences javaTestsDirectory
|
|
218 |
UserPreferences javaTestsDirectory:
|
762
|
219 |
ZipArchive nextBytes:of:startingAt:into:startingAt:
|
752
|
220 |
'Boolean class' arrayClass
|
|
221 |
'Boolean class' isJavaPrimitiveType
|
|
222 |
'Boolean class' javaName
|
|
223 |
'BooleanArray class' isJavaReferenceType
|
|
224 |
'BooleanArray class' javaComponentClass
|
|
225 |
'BooleanArray class' javaName
|
|
226 |
'ByteArray class' isJavaReferenceType
|
|
227 |
'ByteArray class' javaComponentClass
|
|
228 |
'ByteArray class' javaName
|
|
229 |
'Character class' arrayClass
|
|
230 |
'Character class' isJavaPrimitiveType
|
|
231 |
'Character class' javaName
|
|
232 |
'CharacterArray class' decodeFromJavaUTF8:
|
|
233 |
'CharacterArray class' fromJavaUTF8Bytes:
|
|
234 |
'DoubleArray class' isJavaReferenceType
|
|
235 |
'DoubleArray class' javaComponentClass
|
|
236 |
'DoubleArray class' javaName
|
|
237 |
'Float class' arrayClass
|
|
238 |
'Float class' isJavaPrimitiveType
|
|
239 |
'Float class' javaName
|
|
240 |
'FloatArray class' isJavaReferenceType
|
|
241 |
'FloatArray class' javaComponentClass
|
|
242 |
'FloatArray class' javaName
|
|
243 |
'GenericToolbarIconLibrary class' javaClassBrowserIcon
|
|
244 |
'Integer class' arrayClass
|
|
245 |
'Integer class' isJavaPrimitiveType
|
|
246 |
'Integer class' javaName
|
|
247 |
'IntegerArray class' isJavaArrayClass
|
|
248 |
'IntegerArray class' javaName
|
|
249 |
'LargeInteger class' arrayClass
|
|
250 |
'LargeInteger class' isJavaPrimitiveType
|
|
251 |
'LargeInteger class' javaName
|
|
252 |
'LongIntegerArray class' isJavaArrayClass
|
|
253 |
'LongIntegerArray class' isJavaReferenceType
|
|
254 |
'LongIntegerArray class' javaComponentClass
|
|
255 |
'LongIntegerArray class' javaName
|
|
256 |
'Object class' isJavaArrayClass
|
|
257 |
'Object class' isJavaClassType
|
|
258 |
'Object class' isJavaPrimitiveType
|
|
259 |
'Object class' isJavaReferenceType
|
|
260 |
'Object class' isJavaType
|
|
261 |
'ShortFloat class' arrayClass
|
|
262 |
'ShortFloat class' isJavaPrimitiveType
|
|
263 |
'ShortFloat class' javaName
|
|
264 |
'String class' isJavaArrayClass
|
|
265 |
'String class' javaComponentClass
|
|
266 |
'String class' javaName
|
|
267 |
'UndefinedObject class' isJavaPrimitiveType
|
|
268 |
'UndefinedObject class' javaName
|
|
269 |
'WordArray class' isJavaArrayClass
|
|
270 |
'WordArray class' isJavaReferenceType
|
|
271 |
'WordArray class' javaComponentClass
|
|
272 |
'WordArray class' javaName
|
|
273 |
)
|
|
274 |
! !
|
|
275 |
|
|
276 |
!stx_libjava class methodsFor:'description - project information'!
|
|
277 |
|
|
278 |
applicationIconFileName
|
|
279 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
|
|
280 |
|
|
281 |
^ nil
|
|
282 |
"/ ^ self applicationName
|
|
283 |
!
|
|
284 |
|
|
285 |
companyName
|
|
286 |
"Return a companyname which will appear in <lib>.rc"
|
|
287 |
|
|
288 |
^ 'eXept Software AG'
|
|
289 |
!
|
|
290 |
|
|
291 |
description
|
|
292 |
"Return a description string which will appear in vc.def / bc.def"
|
|
293 |
|
|
294 |
^ 'Smalltalk/X Class library'
|
|
295 |
!
|
|
296 |
|
|
297 |
legalCopyright
|
|
298 |
"Return a copyright string which will appear in <lib>.rc"
|
|
299 |
|
|
300 |
^ 'Copyright Claus Gittinger 1988-2010\nCopyright eXept Software AG 1998-2010'
|
|
301 |
!
|
|
302 |
|
|
303 |
productName
|
|
304 |
"Return a product name which will appear in <lib>.rc"
|
|
305 |
|
|
306 |
^ 'Smalltalk/X'
|
|
307 |
! !
|
|
308 |
|
|
309 |
!stx_libjava class methodsFor:'description - svn'!
|
|
310 |
|
754
|
311 |
svnRepositoryUrlString
|
|
312 |
"Return a SVN repository URL of myself.
|
|
313 |
(Generated since 2011-04-08)
|
|
314 |
"
|
|
315 |
|
|
316 |
^ '$URL$'
|
|
317 |
!
|
|
318 |
|
752
|
319 |
svnRevisionNr
|
|
320 |
"Return a SVN revision number of myself.
|
|
321 |
This number is updated after a commit"
|
|
322 |
|
762
|
323 |
^ "$SVN-Revision:"'1098M'"$"
|
752
|
324 |
! !
|
|
325 |
|
|
326 |
!stx_libjava class methodsFor:'file generation'!
|
|
327 |
|
|
328 |
basicFileNamesToGenerate
|
|
329 |
"answer a dictionary (filename -> generator method) with all the files, that have to be generated for this
|
|
330 |
package"
|
|
331 |
|
|
332 |
|dict|
|
|
333 |
|
|
334 |
dict := super basicFileNamesToGenerate.
|
|
335 |
|
|
336 |
dict
|
|
337 |
at:'builder/package.deps.rake' put: #'generate_package_dot_deps_dot_rake'.
|
|
338 |
|
|
339 |
^ dict.
|
|
340 |
|
|
341 |
"Created: / 11-03-2011 / 09:32:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
342 |
! !
|
|
343 |
|
|
344 |
!stx_libjava class methodsFor:'documentation'!
|
|
345 |
|
|
346 |
version_SVN
|
|
347 |
^ '$Id$'
|
|
348 |
! !
|