author | vranyj1 |
Tue, 03 Apr 2012 16:50:39 +0000 | |
branch | jk_new_structure |
changeset 1452 | 69dcb9c33742 |
parent 1440 | 3737a6150f96 |
child 1459 | 9e24f4337d78 |
permissions | -rw-r--r-- |
877 | 1 |
" |
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1155 | 3 |
|
4 |
New code and modifications done at SWING Research Group [1]: |
|
5 |
||
877 | 6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
7 |
SWING Research Group, Czech Technical University in Prague |
|
8 |
||
9 |
This software is furnished under a license and may be used |
|
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
15 |
||
1155 | 16 |
[1] Code written at SWING Research Group contains a signature |
17 |
of one of the above copright owners. For exact set of such code, |
|
18 |
see the differences between this version and version stx:libjava |
|
19 |
as of 1.9.2010 |
|
877 | 20 |
" |
752 | 21 |
"{ Package: 'stx:libjava' }" |
22 |
||
23 |
LibraryDefinition subclass:#stx_libjava |
|
24 |
instanceVariableNames:'' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'* Projects & Packages *' |
|
28 |
! |
|
29 |
||
877 | 30 |
!stx_libjava class methodsFor:'documentation'! |
31 |
||
32 |
copyright |
|
33 |
" |
|
34 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
1155 | 35 |
|
36 |
New code and modifications done at SWING Research Group [1]: |
|
37 |
||
877 | 38 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
39 |
SWING Research Group, Czech Technical University in Prague |
|
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
1155 | 48 |
[1] Code written at SWING Research Group contains a signature |
49 |
of one of the above copright owners. For exact set of such code, |
|
50 |
see the differences between this version and version stx:libjava |
|
51 |
as of 1.9.2010 |
|
877 | 52 |
|
53 |
" |
|
54 |
! ! |
|
752 | 55 |
|
756 | 56 |
!stx_libjava class methodsFor:'accessing'! |
57 |
||
765 | 58 |
svnRepositoryUrl |
59 |
||
60 |
^'https://jv@swing.fit.cvut.cz/svn/stx/libjava/branches/jk_new_structure/src' |
|
61 |
||
62 |
! |
|
63 |
||
756 | 64 |
svnRepositoryUrlBase |
65 |
||
66 |
| url | |
|
67 |
url := stx_libjava svnRepositoryUrl. |
|
68 |
url ifNil:[url := 'https://swing.fit.cvut.cz/svn/stx/libjava/trunk/src']. |
|
69 |
(url endsWith: 'src') ifTrue:[url := url copyTo: url size - 4]. |
|
70 |
^url |
|
71 |
||
72 |
"Created: / 08-04-2011 / 16:57:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
73 |
! ! |
|
74 |
||
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
75 |
!stx_libjava class methodsFor:'accessing - tests'! |
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
76 |
|
833
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
77 |
excludedFromTestSuite |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
78 |
"List of testcases and/or tests excluded from testsuite. |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
79 |
Entries maybe ClassName or #(ClassName testName) |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
80 |
" |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
81 |
^ #( |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
82 |
LookupTests |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
83 |
) |
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
84 |
|
833
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
85 |
"Created: / 03-06-2011 / 17:04:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
a73edd0970ce
stx_libjava: LookupTests are excluded from standard test suite
vranyj1
parents:
826
diff
changeset
|
86 |
! |
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
87 |
|
834 | 88 |
testSuite |
89 |
||
861
fab84333fa2e
Tests reordered, hope this will workaround the segfault
vranyj1
parents:
860
diff
changeset
|
90 |
| suite javaTestCases stTests | |
834 | 91 |
suite := super testSuite. |
1410
0b2580857528
Mauver testsuite excluded from default libjava tests
vranyj1
parents:
1405
diff
changeset
|
92 |
stTests := suite tests. |
862 | 93 |
suite := TestSuite new. |
94 |
suite name: self package. |
|
834 | 95 |
JavaTestsLoader load. |
96 |
||
97 |
javaTestCases := OrderedCollection new. |
|
98 |
||
99 |
Java allClassesDo: |
|
100 |
[:jclass| |
|
101 |
(jclass ~~ (Java at:'stx.libjava.tests.JUnit3Tests') |
|
102 |
and:[jclass ~~ (Java at:'stx.libjava.tests.JUnit4Tests') |
|
103 |
and:[jclass isTestCaseLike]]) |
|
104 |
ifTrue: |
|
105 |
[ | tc | |
|
106 |
tc := jclass asTestCase. |
|
1312 | 107 |
(tc askFor:#isTestlet) ifTrue:[ |
108 |
tc shouldFork: true. |
|
109 |
]. |
|
834 | 110 |
tc isAbstract ifFalse:[javaTestCases add:tc ]]]. |
111 |
||
854
e165b3da9adb
Fixes for running tests in separate processes (required since VM often crash)
vranyj1
parents:
851
diff
changeset
|
112 |
javaTestCases do: |
1312 | 113 |
[:each | |
114 |
suite addTests:each buildSuite tests ]. |
|
834 | 115 |
|
862 | 116 |
|
117 |
suite tests addAll: stTests. |
|
118 |
||
834 | 119 |
suite tests withIndexDo: |
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
834
diff
changeset
|
120 |
[:t :i| |
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
834
diff
changeset
|
121 |
Stdout nextPutAll: i printString; space; nextPutAll: t printString; cr]. |
834 | 122 |
|
123 |
^suite |
|
124 |
||
125 |
" |
|
126 |
stx_libjava testSuite |
|
127 |
||
128 |
" |
|
129 |
||
130 |
"Created: / 07-05-2011 / 19:58:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
837
8f42226d82c0
slightly refactored exceptionTable methods and their callers.. no typechanging side effects
hlopkmar
parents:
834
diff
changeset
|
131 |
"Modified: / 04-06-2011 / 17:23:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
1312 | 132 |
"Modified: / 22-12-2011 / 09:55:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1410
0b2580857528
Mauver testsuite excluded from default libjava tests
vranyj1
parents:
1405
diff
changeset
|
133 |
"Modified (format): / 10-03-2012 / 10:48:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
860 | 134 |
! |
135 |
||
136 |
testSuiteWithoutJavaTests |
|
137 |
||
138 |
^super testSuite. |
|
139 |
||
140 |
"Created: / 21-06-2011 / 17:33:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
764
3c1d3f2d29a5
- stx_libjava class>>testSuite now contains also jUnit tests
vranyj1
parents:
763
diff
changeset
|
141 |
! ! |
752 | 142 |
|
143 |
!stx_libjava class methodsFor:'description'! |
|
144 |
||
145 |
excludedFromPreRequisites |
|
146 |
"list all packages which should be ignored in the automatic |
|
147 |
preRequisites scan. See #preRequisites for more." |
|
148 |
||
149 |
^ #( |
|
150 |
) |
|
151 |
! |
|
152 |
||
153 |
preRequisites |
|
154 |
"list all required packages. |
|
155 |
This list can be maintained manually or (better) generated and |
|
156 |
updated by scanning the superclass hierarchies and looking for |
|
157 |
global variable accesses. (the browser has a menu function for that) |
|
158 |
Howevery, often too much is found, and you may want to explicitely |
|
159 |
exclude individual packages in the #excludedFromPrerequisites method." |
|
160 |
||
161 |
^ #( |
|
1402 | 162 |
#'squeak:petitparser' |
1452
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
163 |
#'stx:goodies/sunit' "TestAsserter - superclass of JavaAntProjectResource " |
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
164 |
#'stx:libbasic' "StandaloneStartup - superclass of JavaStartup " |
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
165 |
#'stx:libbasic2' "UnboxedIntegerArray - superclass of extended SignedLongIntegerArray " |
1433 | 166 |
#'stx:libbasic3' "WrappedMethod - extended " |
1440 | 167 |
#'stx:libcomp' "ReturnNode - referenced by ProxyMethodCompiler>>generate " |
752 | 168 |
#'stx:libhtml' "URL - referenced by JavaEmbeddedFrameView>>setupAppletFrameIn:initializeJava: " |
1402 | 169 |
#'stx:libtool' "WorkspaceApplication - referenced by GroovyEvaluator>>evaluate:in:receiver:notifying:logged:ifFail: " |
1452
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
170 |
#'stx:libview' "TopView - superclass of JavaTopView " |
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
171 |
#'stx:libview2' "Plug - referenced by JavaSourceCodeCache>>findMethodLine:inMethods: " |
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
172 |
#'stx:libwidg' "EditField - referenced by JavaVM class>>_WTextFieldPeer_create: " |
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
173 |
#'stx:libwidg2' "MenuPanel - referenced by JavaVM class>>processEvent: " |
752 | 174 |
) |
175 |
! ! |
|
176 |
||
962 | 177 |
!stx_libjava class methodsFor:'description - compilation'! |
178 |
||
179 |
additionalLinkLibraries_bc_dot_mak |
|
180 |
||
993 | 181 |
^ '$(ZLIB_DIR)\$(ZLIB) support\fdlibm\libfdm.lib' |
962 | 182 |
|
987 | 183 |
"Modified: / 07-09-2011 / 17:04:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 184 |
! |
185 |
||
186 |
additionalLinkLibraries_make_dot_proto |
|
187 |
||
990 | 188 |
^ '$(ZLIB_LD_ARG) support/fdlibm/libfdm.a' |
962 | 189 |
|
987 | 190 |
"Modified: / 07-09-2011 / 17:01:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 191 |
! |
192 |
||
193 |
additionalRules_bc_dot_mak |
|
194 |
^ ' |
|
195 |
$(ZLIB): |
|
196 |
cd $(ZLIB_DIR) |
|
197 |
$(MAKE) $(MAKE_ZLIB_ARG) $(ZLIB) |
|
198 |
cd ..\..\libjava |
|
199 |
||
200 |
$(BZ2LIB): |
|
201 |
cd $(BZ2LIB_DIR) |
|
202 |
$(MAKE) $(MAKE_BZ2LIB_ARG) bz2.lib |
|
203 |
cd ..\..\libjava |
|
987 | 204 |
|
993 | 205 |
support\fdlibm\libfdm.lib: |
987 | 206 |
cd support\fdlibm |
207 |
$(MAKE) -f Makefile.bcc |
|
994 | 208 |
cd ..\.. |
987 | 209 |
|
962 | 210 |
' |
211 |
||
987 | 212 |
"Modified: / 07-09-2011 / 17:04:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 213 |
! |
214 |
||
215 |
additionalRules_make_dot_proto |
|
216 |
^ ' |
|
217 |
zlib: |
|
218 |
cd $(ZLIB_DIR); $(MAKE) $(MAKE_ZLIB_ARG) |
|
219 |
||
993 | 220 |
support/fdlibm/libfdm.a: |
987 | 221 |
$(MAKE) -C support/fdlibm |
222 |
||
962 | 223 |
' |
224 |
||
987 | 225 |
"Modified: / 07-09-2011 / 17:01:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 226 |
! |
227 |
||
228 |
additionalTargets_bc_dot_mak |
|
229 |
||
993 | 230 |
^ '$(ZLIB) support\fdlibm\libfdm.lib' |
962 | 231 |
|
987 | 232 |
"Modified: / 07-09-2011 / 17:03:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 233 |
! |
234 |
||
235 |
additionalTargets_make_dot_proto |
|
236 |
||
993 | 237 |
^ ' zlib support/fdlibm/libfdm.a' |
962 | 238 |
|
239 |
"Created: / 05-09-2006 / 16:05:12 / cg" |
|
987 | 240 |
"Modified: / 07-09-2011 / 17:00:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 241 |
! |
242 |
||
243 |
localIncludes |
|
987 | 244 |
^ '-I$(ZLIB_DIR) -Isupport/fdlibm' |
962 | 245 |
|
246 |
"Created: / 06-09-2006 / 18:18:15 / cg" |
|
987 | 247 |
"Modified: / 07-09-2011 / 17:03:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
962 | 248 |
! ! |
249 |
||
752 | 250 |
!stx_libjava class methodsFor:'description - contents'! |
251 |
||
252 |
classNamesAndAttributes |
|
253 |
"lists the classes which are to be included in the project. |
|
254 |
Each entry in the list may be: a single class-name (symbol), |
|
255 |
or an array-literal consisting of class name and attributes. |
|
256 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
257 |
||
258 |
^ #( |
|
259 |
"<className> or (<className> attributes...) in load order" |
|
773 | 260 |
(AbstractJavaTestCase autoload) |
1402 | 261 |
GroovyCompiler |
262 |
GroovyEvaluator |
|
263 |
GroovyLanguage |
|
264 |
GroovySourceFileWriter |
|
913 | 265 |
(JUnitTestCaseProxy autoload) |
752 | 266 |
Java |
267 |
JavaAnnotation |
|
268 |
JavaAnnotationContainer |
|
269 |
JavaAnnotationDefault |
|
270 |
JavaAnnotationDictionary |
|
271 |
JavaAnnotationValue |
|
869 | 272 |
(JavaAntProjectResource autoload) |
752 | 273 |
JavaArray |
1208 | 274 |
JavaByte |
903 | 275 |
(JavaByteCodeDisassemblerTests autoload) |
276 |
(JavaByteCodeInterpreterTests autoload) |
|
752 | 277 |
JavaByteCodeProcessor |
278 |
(JavaByteCodeProcessorTests autoload) |
|
1402 | 279 |
JavaClassAccessor |
1208 | 280 |
(JavaClassLoadingTests autoload) |
903 | 281 |
(JavaClassReader2Tests autoload) |
752 | 282 |
(JavaClassReaderTests autoload) |
903 | 283 |
(JavaClassRefTests autoload) |
1208 | 284 |
JavaClassRegistry |
1402 | 285 |
JavaClassReloader |
752 | 286 |
JavaConstantPool |
1208 | 287 |
JavaConstants |
752 | 288 |
JavaContext |
289 |
JavaDecompiler |
|
290 |
JavaDescriptor |
|
291 |
JavaError |
|
292 |
JavaExceptionTableEntry |
|
761 | 293 |
(JavaExceptionThrowerMock autoload) |
879 | 294 |
JavaField |
903 | 295 |
(JavaFieldRefTests autoload) |
1208 | 296 |
(JavaFreshlyInitializedResource autoload) |
913 | 297 |
(JavaInitializedResource autoload) |
903 | 298 |
(JavaInterfaceMethodRefTests autoload) |
752 | 299 |
(JavaJUnitTests autoload) |
300 |
JavaLanguage |
|
754 | 301 |
JavaLibraries |
756 | 302 |
(JavaLibrariesResource autoload) |
752 | 303 |
JavaLocalVariableTable |
304 |
JavaLocalVariableTableEntry |
|
1402 | 305 |
JavaLookup |
1006 | 306 |
JavaMathSupport |
903 | 307 |
(JavaMethodRefTests autoload) |
1208 | 308 |
JavaMonitor |
309 |
(JavaMonitorsTests autoload) |
|
774 | 310 |
JavaNameAndType2 |
752 | 311 |
JavaNativeMemory |
312 |
JavaObject |
|
313 |
JavaObjectDictionary |
|
894 | 314 |
JavaPackage |
903 | 315 |
(JavaParserNavigationTests autoload) |
752 | 316 |
JavaPopUpView |
317 |
JavaProcess |
|
774 | 318 |
JavaRef2 |
903 | 319 |
(JavaRefMock autoload) |
320 |
(JavaRefTests autoload) |
|
752 | 321 |
JavaRelease |
758 | 322 |
JavaResolver |
903 | 323 |
(JavaRuntimeConstantPoolTests autoload) |
1208 | 324 |
JavaShort |
752 | 325 |
JavaSlotIndexCache |
1208 | 326 |
JavaSocket |
752 | 327 |
JavaSourceCodeCache |
328 |
JavaSourceFileWriter |
|
329 |
JavaStartup |
|
859
56bc5e063b7d
Common code from JUnitTestCaseProxy and TestletTestCaseProxy moved to a common superclass
vranyj1
parents:
854
diff
changeset
|
330 |
(JavaTestCaseProxy autoload) |
763 | 331 |
JavaTestsLoader |
913 | 332 |
(JavaTestsResource autoload) |
752 | 333 |
JavaTopView |
334 |
(JavaUTF8Tests autoload) |
|
335 |
JavaUnresolvedConstant |
|
1402 | 336 |
JavaUtilities |
752 | 337 |
JavaView |
956
a8b9dec12b4d
Beginning of Java<->Smalltalk types boxing/unboxing
kursjan
parents:
954
diff
changeset
|
338 |
JavaZipSupport |
1208 | 339 |
(MPXJTests autoload) |
752 | 340 |
PPJavaNode |
1402 | 341 |
ProxyMethod |
342 |
ProxyMethodCompiler |
|
343 |
ProxyMethodNode |
|
752 | 344 |
SmalltalkAppletContext |
345 |
SmalltalkAppletStub |
|
913 | 346 |
(TestletTestCaseProxy autoload) |
752 | 347 |
#'stx_libjava' |
348 |
JavaAnnotationArrayValue |
|
349 |
JavaAnnotationClassValue |
|
350 |
JavaAnnotationEnumValue |
|
351 |
JavaAnnotationNestedAnnotationValue |
|
352 |
JavaAnnotationPrimitiveValue |
|
1208 | 353 |
JavaBehavior |
752 | 354 |
JavaByteCodeDisassembler |
355 |
JavaByteCodeEnumerator |
|
356 |
JavaByteCodeInterpreter |
|
1402 | 357 |
JavaByteCodeProcessorAdapter |
752 | 358 |
JavaClassAnnotationContainer |
774 | 359 |
JavaClassContentRef2 |
1208 | 360 |
JavaClassReader |
774 | 361 |
JavaClassRef2 |
752 | 362 |
JavaEmbeddedFrameView |
363 |
JavaFieldAnnotationContainer |
|
364 |
JavaFieldDescriptor |
|
1402 | 365 |
JavaFieldDescriptorWithUnionType |
872 | 366 |
JavaInvalidRefError |
1208 | 367 |
JavaMethod |
752 | 368 |
JavaMethodAnnotationContainer |
369 |
JavaMethodDeclarationNode |
|
370 |
JavaMethodDescriptor |
|
781
d27c59bcf38a
added preResolve compatibility method + JavaStringRef - will be used soon
hlopkmar
parents:
780
diff
changeset
|
371 |
JavaStringRef2 |
752 | 372 |
JavaUnhandledExceptionError |
373 |
JavaUnresolvedClassConstant |
|
374 |
JavaUnresolvedStringConstant |
|
1208 | 375 |
JavaVM |
752 | 376 |
JavadocDeclarationNode |
1368 | 377 |
ProxyMethodConditionNode |
378 |
ProxyMethodGuardNode |
|
379 |
ProxyMethodInvocationNode |
|
1402 | 380 |
JavaByteCodePreresolver |
381 |
JavaByteCodeSteppableInterpreter |
|
382 |
JavaClass |
|
383 |
JavaFieldRef2 |
|
384 |
JavaMethodRef2 |
|
385 |
JavaMethodWithException |
|
1368 | 386 |
ProxyMethodAndNode |
387 |
ProxyMethodBlockInvocationNode |
|
388 |
ProxyMethodMethodInvocationNode |
|
389 |
ProxyMethodTypeCheckNode |
|
390 |
GroovyClass |
|
1402 | 391 |
JavaInterfaceMethodRef2 |
392 |
JavaMethodWithHandler |
|
1368 | 393 |
ProxyMethodJavaMethodInvocationNode |
394 |
ProxyMethodJavaTypeCheckNode |
|
1402 | 395 |
JavaNativeMethod |
1433 | 396 |
ProxyMethodJavaFieldAccessor |
397 |
ProxyMethodJavaFieldGetter |
|
398 |
ProxyMethodJavaFieldSetter |
|
1440 | 399 |
(JavaExceptionTests autoload) |
1452
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
400 |
#'JavaCompiler_Eclipse' |
752 | 401 |
) |
402 |
! |
|
403 |
||
404 |
extensionMethodNames |
|
405 |
"lists the extension methods which are to be included in the project. |
|
406 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
916 | 407 |
|
408 |
^ #( |
|
1402 | 409 |
Behavior isInterface |
916 | 410 |
BooleanArray isInterface |
1208 | 411 |
CharacterArray asDottedJavaClassName |
412 |
CharacterArray asInternalJavaClassName |
|
413 |
CharacterArray asJavaComponentClassName |
|
414 |
CharacterArray asJavaishClassName |
|
415 |
CharacterArray asNiceJavaClassName |
|
416 |
CharacterArray asSTXInternalJavaClassName |
|
417 |
CharacterArray asSlashedJavaClassName |
|
418 |
CharacterArray isJavaArrayDescriptor |
|
419 |
CharacterArray isJavaPrimitiveTypeDescriptor |
|
420 |
Delay waitWithState: |
|
1402 | 421 |
Object isGroovyClass |
916 | 422 |
Object isJavaArray |
423 |
Object isJavaNameAndType |
|
424 |
Object isJavaPackage |
|
425 |
Object isJavaRef |
|
1402 | 426 |
Object isJavaWrapperClass |
934 | 427 |
Object javaBox: |
1402 | 428 |
Object javaUnwrap: |
429 |
Object javaUnwrapFrom: |
|
430 |
Object javaWrap: |
|
1208 | 431 |
Process clearInterrupted |
432 |
Process isInterrupted |
|
433 |
Process isSleeping |
|
434 |
Process isWaiting |
|
435 |
Process javaInterrupt |
|
436 |
Process setInterrupted |
|
437 |
Set #'java__contains:' |
|
1402 | 438 |
SmallInteger javaUnwrapFrom: |
916 | 439 |
String asArrayOfSubstringsSeparatedBy: |
440 |
UserPreferences javaTestsDirectory |
|
441 |
UserPreferences javaTestsDirectory: |
|
1402 | 442 |
WrappedMethod descriptor |
443 |
WrappedMethod isAbstract |
|
916 | 444 |
ZipArchive nextBytes:of:startingAt:into:startingAt: |
445 |
'Boolean class' isJavaPrimitiveType |
|
446 |
'Boolean class' javaArrayClass |
|
934 | 447 |
'Boolean class' javaBox: |
916 | 448 |
'Boolean class' javaName |
1208 | 449 |
'Boolean class' javaUnbox:onError: |
1402 | 450 |
'Boolean class' javaUnwrap: |
451 |
'Boolean class' javaWrapperClass |
|
916 | 452 |
'BooleanArray class' isInterface |
453 |
'BooleanArray class' isJavaArrayClass |
|
454 |
'BooleanArray class' isJavaReferenceType |
|
1402 | 455 |
'BooleanArray class' javaArrayClass |
916 | 456 |
'BooleanArray class' javaComponentClass |
457 |
'BooleanArray class' javaName |
|
458 |
'ByteArray class' isInterface |
|
459 |
'ByteArray class' isJavaArrayClass |
|
460 |
'ByteArray class' isJavaReferenceType |
|
461 |
'ByteArray class' javaArrayClass |
|
462 |
'ByteArray class' javaComponentClass |
|
463 |
'ByteArray class' javaName |
|
464 |
'Character class' isJavaPrimitiveType |
|
465 |
'Character class' javaArrayClass |
|
934 | 466 |
'Character class' javaBox: |
916 | 467 |
'Character class' javaName |
1208 | 468 |
'Character class' javaUnbox:onError: |
1402 | 469 |
'Character class' javaWrapperClass |
916 | 470 |
'CharacterArray class' decodeFromJavaUTF8: |
471 |
'CharacterArray class' fromJavaUTF8Bytes: |
|
472 |
'CharacterArray class' isJavaArrayClass |
|
473 |
'CharacterArray class' javaArrayClass |
|
474 |
'CharacterArray class' javaComponentClass |
|
1402 | 475 |
'ConfigurableFeatures class' hasJavaSupport |
916 | 476 |
'DoubleArray class' isInterface |
477 |
'DoubleArray class' isJavaArrayClass |
|
478 |
'DoubleArray class' isJavaReferenceType |
|
1402 | 479 |
'DoubleArray class' javaArrayClass |
916 | 480 |
'DoubleArray class' javaComponentClass |
481 |
'DoubleArray class' javaName |
|
482 |
'Float class' isJavaPrimitiveType |
|
483 |
'Float class' javaArrayClass |
|
934 | 484 |
'Float class' javaBox: |
916 | 485 |
'Float class' javaName |
1402 | 486 |
'Float class' javaWrapperClass |
916 | 487 |
'FloatArray class' isInterface |
488 |
'FloatArray class' isJavaArrayClass |
|
489 |
'FloatArray class' isJavaReferenceType |
|
1402 | 490 |
'FloatArray class' javaArrayClass |
916 | 491 |
'FloatArray class' javaComponentClass |
492 |
'FloatArray class' javaName |
|
493 |
'Integer class' isJavaPrimitiveType |
|
494 |
'Integer class' javaArrayClass |
|
934 | 495 |
'Integer class' javaBox: |
916 | 496 |
'Integer class' javaName |
1208 | 497 |
'Integer class' javaUnbox:onError: |
498 |
'Integer class' javaUnbox:onError:min:max: |
|
1402 | 499 |
'Integer class' javaWrapperClass |
916 | 500 |
'LargeInteger class' isJavaPrimitiveType |
501 |
'LargeInteger class' javaArrayClass |
|
934 | 502 |
'LargeInteger class' javaBox: |
916 | 503 |
'LargeInteger class' javaName |
1208 | 504 |
'LargeInteger class' javaUnbox:onError: |
1402 | 505 |
'LargeInteger class' javaWrapperClass |
916 | 506 |
'Object class' isJavaArrayClass |
507 |
'Object class' isJavaClassType |
|
508 |
'Object class' isJavaPrimitiveType |
|
509 |
'Object class' isJavaReferenceType |
|
510 |
'Object class' isJavaType |
|
1402 | 511 |
'ProjectDefinition class' javaClassPath |
512 |
'ProjectDefinition class' javaSourcePath |
|
916 | 513 |
'ShortFloat class' isJavaPrimitiveType |
514 |
'ShortFloat class' javaArrayClass |
|
934 | 515 |
'ShortFloat class' javaBox: |
916 | 516 |
'ShortFloat class' javaName |
1402 | 517 |
'ShortFloat class' javaWrapperClass |
916 | 518 |
'SignedIntegerArray class' isInterface |
519 |
'SignedIntegerArray class' isJavaArrayClass |
|
520 |
'SignedIntegerArray class' javaArrayClass |
|
521 |
'SignedIntegerArray class' javaComponentClass |
|
522 |
'SignedIntegerArray class' javaName |
|
523 |
'SignedLongIntegerArray class' isInterface |
|
524 |
'SignedLongIntegerArray class' isJavaArrayClass |
|
525 |
'SignedLongIntegerArray class' isJavaReferenceType |
|
934 | 526 |
'SignedLongIntegerArray class' javaArrayClass |
916 | 527 |
'SignedLongIntegerArray class' javaComponentClass |
528 |
'SignedLongIntegerArray class' javaName |
|
1402 | 529 |
'SignedWordArray class' isJavaArrayClass |
530 |
'SignedWordArray class' isJavaReferenceType |
|
531 |
'SignedWordArray class' javaComponentClass |
|
532 |
'SignedWordArray class' javaName |
|
916 | 533 |
'UndefinedObject class' isJavaPrimitiveType |
534 |
'UndefinedObject class' javaName |
|
535 |
'WordArray class' isInterface |
|
536 |
'WordArray class' isJavaArrayClass |
|
537 |
'WordArray class' isJavaReferenceType |
|
538 |
'WordArray class' javaArrayClass |
|
539 |
'WordArray class' javaComponentClass |
|
540 |
'WordArray class' javaName |
|
1433 | 541 |
'Boolean class' javaWrap: |
916 | 542 |
) |
752 | 543 |
! ! |
544 |
||
1371 | 545 |
!stx_libjava class methodsFor:'description - java'! |
546 |
||
547 |
javaClassPath |
|
548 |
||
549 |
<javaclasspath> |
|
550 |
||
551 |
^{ |
|
552 |
self packageDirectory / 'java' / 'bin' . |
|
553 |
self packageDirectory / 'java' / 'libs' / '*.jar' |
|
554 |
} |
|
555 |
||
556 |
"Created: / 17-11-2011 / 23:00:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
557 |
! |
|
558 |
||
559 |
javaSourcePath |
|
560 |
||
561 |
<javasourcepath> |
|
562 |
||
563 |
^{ |
|
564 |
self packageDirectory / 'java' / 'src' . |
|
565 |
self packageDirectory / 'java' / 'libs-src' / '*.jar' . |
|
566 |
} |
|
567 |
||
568 |
"Created: / 17-11-2011 / 23:01:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
569 |
! ! |
|
1276
5a302466ecb8
Default class path hanling changed, now each Smalltalk/X package can define its own class path, that is included initial class path
vranyj1
parents:
1275
diff
changeset
|
570 |
|
752 | 571 |
!stx_libjava class methodsFor:'description - project information'! |
572 |
||
1007 | 573 |
applicationIconFileName |
574 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
752 | 575 |
|
576 |
^ nil |
|
577 |
"/ ^ self applicationName |
|
578 |
! |
|
579 |
||
1007 | 580 |
companyName |
581 |
"Return a companyname which will appear in <lib>.rc" |
|
752 | 582 |
|
583 |
^ 'eXept Software AG' |
|
584 |
! |
|
585 |
||
1007 | 586 |
description |
587 |
"Description string which will appear in vc.def / bc.def" |
|
752 | 588 |
|
589 |
^ 'Smalltalk/X Class library' |
|
590 |
! |
|
591 |
||
1007 | 592 |
legalCopyright |
593 |
"Copyright string which will appear in <lib>.rc" |
|
752 | 594 |
|
877 | 595 |
^ 'Copyright Claus Gittinger 1988-2011\nCopyright eXept Software AG 1998-2011\nCopyright Jan Vrany, Jan Kurs and Marcel Hlopko\b SWING Research Group, Czech Technical University In Prague' |
596 |
||
597 |
"Modified: / 26-07-2011 / 17:13:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
752 | 598 |
! |
599 |
||
1007 | 600 |
productName |
601 |
"Return product name which will appear in <lib>.rc" |
|
752 | 602 |
|
603 |
^ 'Smalltalk/X' |
|
604 |
! ! |
|
605 |
||
606 |
!stx_libjava class methodsFor:'description - svn'! |
|
607 |
||
1007 | 608 |
svnRepositoryUrlString |
1437 | 609 |
"Return a SVN repository URL of myself. |
754 | 610 |
(Generated since 2011-04-08) |
1437 | 611 |
Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!! |
754 | 612 |
" |
613 |
||
1437 | 614 |
^ '$URL:: $' |
754 | 615 |
! |
616 |
||
752 | 617 |
svnRevisionNr |
618 |
"Return a SVN revision number of myself. |
|
619 |
This number is updated after a commit" |
|
620 |
||
1452
69dcb9c33742
Some more support for finally block when a Smalltalk exception is thrown - not yet working correctly
vranyj1
parents:
1440
diff
changeset
|
621 |
^ "$SVN-Revision:"'1804M '"$" |
752 | 622 |
! ! |
623 |
||
624 |
!stx_libjava class methodsFor:'file generation'! |
|
625 |
||
1007 | 626 |
basicFileNamesToGenerat |
627 |
"answer a dictionary (filename -> generator method) with all the files, that have to be generated for this |
|
752 | 628 |
package" |
629 |
||
630 |
|dict| |
|
631 |
||
632 |
dict := super basicFileNamesToGenerate. |
|
633 |
||
634 |
dict |
|
635 |
at:'builder/package.deps.rake' put: #'generate_package_dot_deps_dot_rake'. |
|
636 |
||
637 |
^ dict. |
|
638 |
||
639 |
"Created: / 11-03-2011 / 09:32:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
640 |
! ! |
|
641 |
||
642 |
!stx_libjava class methodsFor:'documentation'! |
|
643 |
||
644 |
version_SVN |
|
645 |
^ '$Id$' |
|
646 |
! ! |