author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 11 Feb 2013 03:29:54 -0800 | |
branch | openjdk7-support |
changeset 2052 | e65c246adabc |
parent 2047 | a9663b617b2a |
child 2058 | a82eab5d767d |
permissions | -rw-r--r-- |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
3 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
4 |
New code and modifications done at SWING Research Group [1]: |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
5 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
6 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
7 |
SWING Research Group, Czech Technical University in Prague |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
8 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
9 |
This software is furnished under a license and may be used |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
10 |
only in accordance with the terms of that license and with the |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
11 |
inclusion of the above copyright notice. This software may not |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
12 |
be provided or otherwise made available to, or used by, any |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
13 |
other person. No title to or ownership of the software is |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
14 |
hereby transferred. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
15 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
16 |
[1] Code written at SWING Research Group contains a signature |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
17 |
of one of the above copright owners. For exact set of such code, |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
18 |
see the differences between this version and version stx:libjava |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
19 |
as of 1.9.2010 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
20 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
21 |
"{ Package: 'stx:libjava' }" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
22 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
23 |
Object subclass:#JavaRelease |
1989
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
24 |
instanceVariableNames:'javaHome sourcePath classes bootClassPathClasses extDirsClasses |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
25 |
bundle bootClassPath' |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
26 |
classVariableNames:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
27 |
poolDictionaries:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
28 |
category:'Languages-Java-Support' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
29 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
30 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
31 |
JavaRelease class instanceVariableNames:'instance' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
32 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
33 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
34 |
No other class instance variables are inherited by this class. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
35 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
36 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
37 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
38 |
JavaRelease subclass:#Custom |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
39 |
instanceVariableNames:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
40 |
classVariableNames:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
41 |
poolDictionaries:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
42 |
privateIn:JavaRelease |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
43 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
44 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
45 |
JavaRelease subclass:#OpenJDK6 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
46 |
instanceVariableNames:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
47 |
classVariableNames:'' |
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
48 |
poolDictionaries:'JavaVMData' |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
49 |
privateIn:JavaRelease |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
50 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
51 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
52 |
JavaRelease::OpenJDK6 subclass:#OpenJDK7 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
53 |
instanceVariableNames:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
54 |
classVariableNames:'' |
2040
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
55 |
poolDictionaries:'JavaVMData' |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
56 |
privateIn:JavaRelease |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
57 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
58 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
59 |
JavaRelease subclass:#SunJDK122 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
60 |
instanceVariableNames:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
61 |
classVariableNames:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
62 |
poolDictionaries:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
63 |
privateIn:JavaRelease |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
64 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
65 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
66 |
JavaRelease::OpenJDK6 subclass:#SunJDK6 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
67 |
instanceVariableNames:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
68 |
classVariableNames:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
69 |
poolDictionaries:'' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
70 |
privateIn:JavaRelease |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
71 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
72 |
|
2052
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
73 |
JavaRelease::OpenJDK7 subclass:#SunJDK7 |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
74 |
instanceVariableNames:'' |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
75 |
classVariableNames:'' |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
76 |
poolDictionaries:'' |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
77 |
privateIn:JavaRelease |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
78 |
! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
79 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
80 |
!JavaRelease class methodsFor:'documentation'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
81 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
82 |
copyright |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
83 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
84 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
85 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
86 |
New code and modifications done at SWING Research Group [1]: |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
87 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
88 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
89 |
SWING Research Group, Czech Technical University in Prague |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
90 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
91 |
This software is furnished under a license and may be used |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
92 |
only in accordance with the terms of that license and with the |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
93 |
inclusion of the above copyright notice. This software may not |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
94 |
be provided or otherwise made available to, or used by, any |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
95 |
other person. No title to or ownership of the software is |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
96 |
hereby transferred. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
97 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
98 |
[1] Code written at SWING Research Group contains a signature |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
99 |
of one of the above copright owners. For exact set of such code, |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
100 |
see the differences between this version and version stx:libjava |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
101 |
as of 1.9.2010 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
102 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
103 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
104 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
105 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
106 |
!JavaRelease class methodsFor:'instance creation'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
107 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
108 |
custom |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
109 |
^Custom instance |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
110 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
111 |
"Created: / 26-07-2012 / 23:37:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
112 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
113 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
114 |
openJDK6 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
115 |
^ OpenJDK6 instance |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
116 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
117 |
"Created: / 27-10-2010 / 21:41:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
118 |
"Modified: / 05-11-2011 / 18:45:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
119 |
"Modified: / 27-07-2012 / 00:22:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
120 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
121 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
122 |
openJDK7 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
123 |
^ OpenJDK7 instance. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
124 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
125 |
"Created: / 26-07-2012 / 23:51:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
126 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
127 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
128 |
sunJDK122 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
129 |
^ SunJDK122 instance |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
130 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
131 |
"Created: / 27-10-2010 / 21:41:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
132 |
"Modified: / 05-11-2011 / 18:45:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
133 |
"Modified: / 27-07-2012 / 00:22:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
134 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
135 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
136 |
sunJDK6 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
137 |
^ SunJDK6 instance |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
138 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
139 |
"Created: / 22-11-2010 / 13:33:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
140 |
"Modified: / 05-11-2011 / 18:45:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
141 |
"Modified: / 27-07-2012 / 00:22:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
142 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
143 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
144 |
!JavaRelease class methodsFor:'accessing'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
145 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
146 |
all |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
147 |
^(self allSubclasses |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
148 |
reject: [:rel | rel isAbstract ] |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
149 |
thenCollect: [:rel | rel instance ]) |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
150 |
asSortedCollection: [:a :b | a priority > b priority ] |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
151 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
152 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
153 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
154 |
JavaRelease all |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
155 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
156 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
157 |
"Created: / 27-07-2012 / 00:10:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
158 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
159 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
160 |
any |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
161 |
| releases | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
162 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
163 |
releases := self available. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
164 |
releases isEmptyOrNil ifTrue:[ ^ nil ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
165 |
^ releases first initialize |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
166 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
167 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
168 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
169 |
JavaRelease any |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
170 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
171 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
172 |
"Created: / 22-11-2010 / 13:11:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
173 |
"Modified: / 01-11-2011 / 14:02:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
174 |
"Modified: / 26-07-2012 / 23:42:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
175 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
176 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
177 |
available |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
178 |
| releases | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
179 |
releases := self all select: [:rel | rel isAvailable ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
180 |
releases isEmpty |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
181 |
ifTrue: [ self error: 'No Java release found'. ^nil ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
182 |
^releases |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
183 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
184 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
185 |
JavaRelease available |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
186 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
187 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
188 |
"Created: / 26-07-2012 / 23:41:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
189 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
190 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
191 |
!JavaRelease class methodsFor:'instance creation-private'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
192 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
193 |
instance |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
194 |
instance isNil ifTrue:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
195 |
instance := self new initialize |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
196 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
197 |
^instance |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
198 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
199 |
"Created: / 27-07-2012 / 00:22:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
200 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
201 |
|
1876
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
202 |
!JavaRelease class methodsFor:'others'! |
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
203 |
|
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
204 |
version_HG |
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
205 |
|
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
206 |
^ '$Changeset: <not expanded> $' |
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
207 |
! ! |
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
208 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
209 |
!JavaRelease class methodsFor:'queries'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
210 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
211 |
isAbstract |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
212 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
213 |
^self class == JavaRelease |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
214 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
215 |
"Created: / 22-11-2010 / 13:33:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
216 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
217 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
218 |
!JavaRelease methodsFor:'accessing'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
219 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
220 |
bootClassPath |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
221 |
"Returns a default value of sun.boot.class.path" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
222 |
|
1989
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
223 |
|
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
224 |
bootClassPath isNil ifTrue:[ |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
225 |
| libs | |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
226 |
|
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
227 |
libs := self jreHome / 'lib'. |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
228 |
bootClassPath := OrderedCollection new. |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
229 |
libs directoryContentsAsFilenames do:[:each| |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
230 |
(each pathName endsWith:'.jar') ifTrue:[ |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
231 |
(each pathName endsWith: 'rt.jar') ifTrue:[ |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
232 |
bootClassPath addFirst: each pathName |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
233 |
] ifFalse:[ |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
234 |
bootClassPath addLast: each pathName |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
235 |
] |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
236 |
]. |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
237 |
]. |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
238 |
]. |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
239 |
^bootClassPath. |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
240 |
|
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
241 |
" |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
242 |
Java release bootClassPath |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
243 |
" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
244 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
245 |
"Created: / 02-11-2011 / 12:19:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
246 |
"Modified (format): / 31-07-2012 / 10:16:25 / jv" |
1989
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
247 |
"Modified: / 23-01-2013 / 15:18:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1949
a83c0afe06a4
Initial implementation of Java libraries and bundles.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1927
diff
changeset
|
248 |
! |
a83c0afe06a4
Initial implementation of Java libraries and bundles.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1927
diff
changeset
|
249 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
250 |
javaExtDirs |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
251 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
252 |
"Returns a default value of java.ext.dirs property" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
253 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
254 |
OperatingSystem isUNIXlike ifTrue:[ ^ self javaExtDirsOnUNIX ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
255 |
OperatingSystem isMSWINDOWSlike ifTrue:[ ^ self javaExtDirsOnWindows ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
256 |
self error:'Unsupported platform'. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
257 |
^ #() |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
258 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
259 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
260 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
261 |
JavaRelease openJDK6 classPath |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
262 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
263 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
264 |
"Modified: / 27-10-2010 / 21:48:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
265 |
"Created: / 31-08-2011 / 19:59:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
266 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
267 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
268 |
javaExtDirsOnUNIX |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
269 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
270 |
^#() |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
271 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
272 |
"Created: / 31-08-2011 / 19:59:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
273 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
274 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
275 |
javaExtDirsOnWindows |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
276 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
277 |
^#() |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
278 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
279 |
"Created: / 31-08-2011 / 19:59:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
280 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
281 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
282 |
javaHome |
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
283 |
"Answer a Java home. This is either path to JRE (no JDK is found) or to |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
284 |
full JDK (if JDK is installed) |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
285 |
|
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
286 |
If you want path to either JRE or JDK, use |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
287 |
#jreHome |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
288 |
#jdkHome |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
289 |
|
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
290 |
" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
291 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
292 |
javaHome isNil ifTrue:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
293 |
javaHome := self searchForJavaHome. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
294 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
295 |
^javaHome |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
296 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
297 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
298 |
JavaRelease openJDK6 javaHome |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
299 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
300 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
301 |
"Created: / 27-10-2010 / 18:59:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
302 |
"Modified: / 27-07-2012 / 00:24:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
303 |
"Modified (comment): / 23-01-2013 / 12:19:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
304 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
305 |
|
2052
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
306 |
javaHome: aString |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
307 |
javaHome := aString. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
308 |
self searchForSourcePath. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
309 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
310 |
" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
311 |
JavaRelease openJDK6 javaHome |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
312 |
" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
313 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
314 |
"Created: / 26-07-2012 / 23:32:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
315 |
"Modified: / 11-02-2013 / 02:58:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
316 |
! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
317 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
318 |
javaHomeOrNil |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
319 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
320 |
"Answer a Java home" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
321 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
322 |
| home | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
323 |
home := (javaHome |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
324 |
ifNotNil:[javaHome] |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
325 |
ifNil:[self searchForJavaHome]). |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
326 |
^home |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
327 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
328 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
329 |
JavaRelease openJDK6 javaHome |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
330 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
331 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
332 |
"Created: / 22-11-2010 / 13:17:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
333 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
334 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
335 |
javaHomes |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
336 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
337 |
"Answer a set of possible java homes, those directories are searched" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
338 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
339 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
340 |
OperatingSystem isUNIXlike ifTrue:[ ^ self javaHomesOnUNIX ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
341 |
OperatingSystem isMSWINDOWSlike ifTrue:[ ^ self javaHomesOnWindows ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
342 |
self error:'Unsupported platform'. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
343 |
^ #() |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
344 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
345 |
"Modified: / 22-11-2010 / 13:28:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
346 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
347 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
348 |
javaHomesOnUNIX |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
349 |
"raise an error: must be redefined in concrete subclass(es)" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
350 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
351 |
^ self subclassResponsibility |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
352 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
353 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
354 |
javaHomesOnWindows |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
355 |
"raise an error: must be redefined in concrete subclass(es)" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
356 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
357 |
^ self subclassResponsibility |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
358 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
359 |
|
1971
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
360 |
javaNativeMethodsImplementation |
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
361 |
"Returns an object that imolements native methods." |
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
362 |
|
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
363 |
^ self subclassResponsibility |
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
364 |
|
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
365 |
"Created: / 16-01-2013 / 19:58:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
366 |
! |
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
367 |
|
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
368 |
jdkHome |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
369 |
|
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
370 |
"Answers the directory where the JDK lives or nil, if no JDK is found" |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
371 |
|
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
372 |
| jdkHome | |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
373 |
|
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
374 |
self javaHome isNil ifTrue:[ ^ nil ]. |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
375 |
|
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
376 |
^((jdkHome := self javaHome) asFilename / 'jre') exists |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
377 |
ifTrue:[jdkHome] |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
378 |
ifFalse:[nil]. |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
379 |
|
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
380 |
" |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
381 |
Java release searchForJavaHome; jdkHome |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
382 |
" |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
383 |
|
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
384 |
"Created: / 23-01-2013 / 12:20:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
385 |
! |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
386 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
387 |
jreHome |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
388 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
389 |
"Answers the directory where the JRE lives" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
390 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
391 |
| jreHome | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
392 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
393 |
self javaHome isNil ifTrue:[ ^ nil ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
394 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
395 |
^(jreHome := self javaHome asFilename / 'jre') exists |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
396 |
ifTrue:[jreHome] |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
397 |
ifFalse:[javaHome asFilename]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
398 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
399 |
"Created: / 27-10-2010 / 21:24:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
400 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
401 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
402 |
name |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
403 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
404 |
"Answer a human readable name of the Java release such as Sun JDK 1.2.2 or OpenJDK 6" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
405 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
406 |
^self subclassResponsibility |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
407 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
408 |
"Created: / 27-10-2010 / 18:53:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
409 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
410 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
411 |
priority |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
412 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
413 |
^50 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
414 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
415 |
"Created: / 22-11-2010 / 13:34:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
416 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
417 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
418 |
selector |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
419 |
"Returns instance-creation selector to get the receiver. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
420 |
See JavaRelease class, protocol instance creation" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
421 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
422 |
^self subclassResponsibility |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
423 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
424 |
"Created: / 27-07-2012 / 10:04:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
425 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
426 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
427 |
sourcePath |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
428 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
429 |
"Returns a paths where sources are located" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
430 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
431 |
sourcePath ifNil:[self searchForSourcePath]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
432 |
^sourcePath |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
433 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
434 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
435 |
JavaRelease openJDK6 sourcePath |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
436 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
437 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
438 |
"Created: / 27-10-2010 / 19:20:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
439 |
"Modified: / 30-11-2010 / 11:55:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
440 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
441 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
442 |
!JavaRelease methodsFor:'debugging'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
443 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
444 |
dumpConfigOn: stream |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
445 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
446 |
| dumper | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
447 |
dumper := [:name :value :isfile| |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
448 |
| values | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
449 |
|
2047
a9663b617b2a
Added support for environment variables to control release, JIT and native method optimization.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2042
diff
changeset
|
450 |
'%-30s : ' printf:{ name } on: stream. |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
451 |
value isString |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
452 |
ifTrue:[values := { value asString }] |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
453 |
ifFalse:[values := value]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
454 |
values do:[:v| |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
455 |
stream nextPutAll: v asString. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
456 |
isfile ifTrue:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
457 |
v asFilename exists ifFalse:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
458 |
stream nextPutAll:' (not found!!!!!!)' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
459 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
460 |
] |
2047
a9663b617b2a
Added support for environment variables to control release, JIT and native method optimization.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2042
diff
changeset
|
461 |
] separatedBy:[stream cr; next: 30 + 3 put: Character space]. |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
462 |
stream cr. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
463 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
464 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
465 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
466 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
467 |
stream nextPutAll: '== Java release config =='; cr. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
468 |
dumper value: 'name' value: self name value: false. |
1989
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
469 |
dumper value: 'JAVA home' value: self javaHome value: true. |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
470 |
dumper value: 'JRE home' value: self jreHome asString value: true. |
131b7459fdab
Value of class.path and sun.misc.boot.path refactored to match values used in Oracle JVM.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1988
diff
changeset
|
471 |
dumper value: 'JDK home' value: self jdkHome asString value: true. |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
472 |
dumper value: 'boot class path' value: self bootClassPath value: true. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
473 |
dumper value: 'ext dirs' value: self javaExtDirs value: true. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
474 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
475 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
476 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
477 |
Java release dumpConfigOn: Transcript. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
478 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
479 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
480 |
"Created: / 10-12-2011 / 12:55:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2047
a9663b617b2a
Added support for environment variables to control release, JIT and native method optimization.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2042
diff
changeset
|
481 |
"Modified: / 08-02-2013 / 10:22:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
482 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
483 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
484 |
!JavaRelease methodsFor:'displaying'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
485 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
486 |
displayString |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
487 |
^self name |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
488 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
489 |
"Created: / 27-07-2012 / 00:01:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
490 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
491 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
492 |
!JavaRelease methodsFor:'initialization'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
493 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
494 |
initializeBootClassPathIndex |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
495 |
bootClassPathClasses := IdentitySet new. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
496 |
self bootClassPath do: [:file | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
497 |
| filename | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
498 |
|
1995
b129fd0a81e4
Fixes for boot class path index.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1989
diff
changeset
|
499 |
filename := file asFilename. |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
500 |
|
1995
b129fd0a81e4
Fixes for boot class path index.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1989
diff
changeset
|
501 |
self assert: (filename suffix = 'jar'). |
b129fd0a81e4
Fixes for boot class path index.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1989
diff
changeset
|
502 |
self assert: (filename exists). |
b129fd0a81e4
Fixes for boot class path index.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1989
diff
changeset
|
503 |
self selectAllClassNamesIn: file to: bootClassPathClasses. |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
504 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
505 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
506 |
"Created: / 02-11-2011 / 12:12:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
507 |
"Modified: / 19-07-2012 / 11:02:41 / jv" |
1995
b129fd0a81e4
Fixes for boot class path index.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1989
diff
changeset
|
508 |
"Modified: / 23-01-2013 / 17:24:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
509 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
510 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
511 |
initializeClassIndex |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
512 |
| jreHome | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
513 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
514 |
(jreHome := self jreHome) isNil ifTrue:[ ^ self ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
515 |
classes := IdentitySet new. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
516 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
517 |
self jreHome recursiveDirectoryContents do: [ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
518 |
:each | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
519 |
(each endsWith: '.class') ifTrue: [ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
520 |
classes add: each asSymbol. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
521 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
522 |
(each endsWith: '.jar') ifTrue: [ self selectAllClassNamesIn: (self jreHome asFilename / each asFilename) to: classes. ] |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
523 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
524 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
525 |
"Created: / 01-11-2011 / 14:09:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
526 |
"Modified: / 27-07-2012 / 13:59:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
527 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
528 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
529 |
initializeExtDirsIndex |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
530 |
extDirsClasses := IdentitySet new. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
531 |
self javaExtDirs do: [ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
532 |
:dir | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
533 |
dir exists ifFalse: [ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
534 |
Logger |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
535 |
log: dir pathName |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
536 |
, ', included in JavaRelease>>javaExtDirs, does not exist' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
537 |
severity: #info |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
538 |
facility: 'JVM' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
539 |
] ifTrue: [ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
540 |
dir recursiveDirectoryContents do: [ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
541 |
:filename | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
542 |
(filename endsWith: '.class') ifTrue: [ extDirsClasses add: filename asSymbol ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
543 |
(filename endsWith: '.jar') ifTrue: [ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
544 |
self selectAllClassNamesIn: dir asFilename / filename asFilename to: extDirsClasses |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
545 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
546 |
] |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
547 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
548 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
549 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
550 |
"Created: / 02-11-2011 / 12:12:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
1580 | 551 |
! ! |
552 |
||
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
553 |
!JavaRelease methodsFor:'object conversions'! |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
554 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
555 |
as_ST_String: aJavaString |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
556 |
"Given a java.lang.String instance, returns a coresponding |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
557 |
Smalltalk String" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
558 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
559 |
^self subclassResponsibility |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
560 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
561 |
"Created: / 08-08-1997 / 12:02:55 / cg" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
562 |
"Modified: / 04-01-1999 / 23:55:08 / cg" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
563 |
"Modified: / 22-03-2011 / 17:21:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
564 |
"Modified: / 07-02-2013 / 20:01:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
565 |
! |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
566 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
567 |
as_String:aString |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
568 |
"Given a Smalltalk string, returns corresponsing instance of |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
569 |
java.lang.String" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
570 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
571 |
^self subclassResponsibility |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
572 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
573 |
"Created: / 07-08-1997 / 21:15:49 / cg" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
574 |
"Modified: / 07-02-2013 / 20:02:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
575 |
! ! |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
576 |
|
1580 | 577 |
!JavaRelease methodsFor:'private'! |
578 |
||
579 |
searchInternalIndex: anIdentityCollection for: className |
|
580 |
| classFileName | |
|
581 |
classFileName := (className asSlashedJavaClassName) asSymbol. |
|
582 |
^ anIdentityCollection includes: classFileName asSymbol. |
|
583 |
||
584 |
"Created: / 02-11-2011 / 12:27:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
585 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
586 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
587 |
selectAllClassNamesIn: jarArchiveName to: anIdentityCollection |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
588 |
| jar classesInJar | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
589 |
jar := ZipArchive readingFrom: jarArchiveName asFilename readStream. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
590 |
classesInJar := jar entries select: [:each | each endsWith: '.class'. ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
591 |
classesInJar do: [:each | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
592 |
anIdentityCollection add: (each copyFrom: 1 to: each size - 6) asSymbol |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
593 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
594 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
595 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
596 |
JavaRelease any." |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
597 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
598 |
"Created: / 02-11-2011 / 12:17:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
599 |
"Modified (format): / 02-11-2011 / 23:34:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
600 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
601 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
602 |
updateClassIndexFrom: jarArchiveName |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
603 |
| jar classesInJar | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
604 |
jar := ZipArchive |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
605 |
readingFrom: (self jreHome asFilename / jarArchiveName asFilename) |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
606 |
readStream. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
607 |
classesInJar := jar entries select: [:each | each endsWith: '.class'. ]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
608 |
classesInJar do: [:each | classes add: each asSymbol]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
609 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
610 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
611 |
JavaRelease any." |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
612 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
613 |
"Created: / 01-11-2011 / 14:18:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
614 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
615 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
616 |
!JavaRelease methodsFor:'queries'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
617 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
618 |
bootClassPathIncludesClassNamed: className |
1580 | 619 |
bootClassPathClasses isNil ifTrue:[self initializeBootClassPathIndex]. |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
620 |
^ self searchInternalIndex: bootClassPathClasses for: className. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
621 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
622 |
"Created: / 02-11-2011 / 12:11:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
1580 | 623 |
"Modified: / 31-07-2012 / 18:00:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
624 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
625 |
|
1580 | 626 |
extDirsIncludesClassNamed: className |
627 |
"Looks like a bug, shouldn't it look to extDirClasses?" |
|
628 |
||
629 |
classes isNil ifTrue:[self initializeClassIndex]. |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
630 |
^self searchInternalIndex: classes for: className. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
631 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
632 |
"Created: / 02-11-2011 / 12:11:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
1580 | 633 |
"Modified (comment): / 31-07-2012 / 18:00:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
634 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
635 |
|
1580 | 636 |
includesClassNamed: className |
637 |
classes isNil ifTrue:[self initializeClassIndex]. |
|
638 |
^self searchInternalIndex: classes for: className. |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
639 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
640 |
"Created: / 01-11-2011 / 14:50:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
1580 | 641 |
"Modified: / 31-07-2012 / 17:58:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
642 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
643 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
644 |
isAvailable |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
645 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
646 |
^self javaHomeOrNil notNil |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
647 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
648 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
649 |
JavaRelease openJDK6 isAvailable |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
650 |
JavaRelease sunJDK6 isAvailable |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
651 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
652 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
653 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
654 |
"Created: / 22-11-2010 / 13:15:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
655 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
656 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
657 |
isCustom |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
658 |
^false |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
659 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
660 |
"Created: / 27-07-2012 / 00:08:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
661 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
662 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
663 |
!JavaRelease methodsFor:'searching'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
664 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
665 |
searchForJavaHome |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
666 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
667 |
| h | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
668 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
669 |
h := (OperatingSystem getEnvironment:'JAVA_HOME'). |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
670 |
h notNil ifTrue:[ |
2030
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
671 |
(h endsWith: '\jre') ifTrue:[ |
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
672 |
h := h copyTo: h size - 5 |
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
673 |
]. |
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
674 |
javaHome := h asFilename. |
2030
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
675 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
676 |
"/Do not trust JAVA_HOME, it might be wrong (on Windows machine due |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
677 |
"/to a registry mess |
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
678 |
((javaHome / 'lib' / 'rt.jar') exists |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
679 |
or:[(javaHome / 'jre' / 'lib' / 'rt.jar') exists]) |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
680 |
ifTrue:[ ^ javaHome ]. |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
681 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
682 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
683 |
self javaHomes do: |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
684 |
[:home| | homeAsFilename | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
685 |
homeAsFilename := home asFilename. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
686 |
homeAsFilename exists ifTrue: |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
687 |
[(self validateJavaHome: homeAsFilename) ifTrue: |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
688 |
[^javaHome := home]]]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
689 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
690 |
^nil |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
691 |
|
1873 | 692 |
" |
693 |
Java release searchForJavaHome |
|
694 |
Java release javaHome |
|
695 |
||
696 |
" |
|
697 |
||
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
698 |
"Created: / 27-10-2010 / 19:03:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
699 |
"Modified: / 15-03-2011 / 13:29:14 / Jan Kurs <kursjan@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
700 |
"Modified: / 15-03-2011 / 13:47:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
701 |
"Modified: / 19-07-2012 / 11:08:04 / jv" |
2030
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
702 |
"Modified: / 06-02-2013 / 13:14:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
703 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
704 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
705 |
searchForSourcePath |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
706 |
|
1589 | 707 |
| java_home src_zip | |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
708 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
709 |
sourcePath := OrderedCollection new. |
1949
a83c0afe06a4
Initial implementation of Java libraries and bundles.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1927
diff
changeset
|
710 |
bundle := nil. |
1589 | 711 |
java_home := self javaHome. |
712 |
java_home notNil ifTrue:[ |
|
1890
7bc6b5feb6f8
Bugfix in JavaRelease>>searchForSourcePath:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1876
diff
changeset
|
713 |
src_zip := self javaHome asFilename / 'src.zip'. |
1949
a83c0afe06a4
Initial implementation of Java libraries and bundles.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1927
diff
changeset
|
714 |
src_zip exists ifTrue:[sourcePath add: src_zip pathName]. |
1589 | 715 |
]. |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
716 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
717 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
718 |
JavaRelease openJDK6 searchForSourcePath; sourcePath |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
719 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
720 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
721 |
"Created: / 27-10-2010 / 21:15:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1949
a83c0afe06a4
Initial implementation of Java libraries and bundles.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1927
diff
changeset
|
722 |
"Modified: / 12-01-2013 / 15:55:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
723 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
724 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
725 |
!JavaRelease methodsFor:'validating'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
726 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
727 |
validateJavaHome: home |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
728 |
|
1589 | 729 |
home isNil ifTrue:[ ^ false ]. |
730 |
||
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
731 |
"Just JRE" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
732 |
( home asFilename / 'lib' / 'rt.jar' ) exists ifTrue:[^true]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
733 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
734 |
"Full JDK" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
735 |
( home asFilename / 'jre' / 'lib' / 'rt.jar' ) exists ifTrue:[^true]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
736 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
737 |
^ false |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
738 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
739 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
740 |
JavaRelease basicNew validateJavaHome: '/usr/lib/jvm/java-6-openjdk' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
741 |
JavaRelease basicNew validateJavaHome: '/tmp' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
742 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
743 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
744 |
"Created: / 27-10-2010 / 19:14:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1589 | 745 |
"Modified: / 10-08-2012 / 16:28:43 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
746 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
747 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
748 |
!JavaRelease::Custom class methodsFor:'documentation'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
749 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
750 |
copyright |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
751 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
752 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
753 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
754 |
New code and modifications done at SWING Research Group [1]: |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
755 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
756 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
757 |
SWING Research Group, Czech Technical University in Prague |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
758 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
759 |
This software is furnished under a license and may be used |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
760 |
only in accordance with the terms of that license and with the |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
761 |
inclusion of the above copyright notice. This software may not |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
762 |
be provided or otherwise made available to, or used by, any |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
763 |
other person. No title to or ownership of the software is |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
764 |
hereby transferred. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
765 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
766 |
[1] Code written at SWING Research Group contains a signature |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
767 |
of one of the above copright owners. For exact set of such code, |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
768 |
see the differences between this version and version stx:libjava |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
769 |
as of 1.9.2010 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
770 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
771 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
772 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
773 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
774 |
version_SVN |
1876
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
775 |
^ '§Id:: §' |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
776 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
777 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
778 |
!JavaRelease::Custom methodsFor:'accessing'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
779 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
780 |
javaHome |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
781 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
782 |
"Answer a Java home" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
783 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
784 |
javaHome isNil ifTrue:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
785 |
javaHome := OperatingSystem getEnvironment:'JAVA_HOME'. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
786 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
787 |
^javaHome |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
788 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
789 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
790 |
JavaRelease custom javaHome |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
791 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
792 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
793 |
"Created: / 26-07-2012 / 23:39:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
794 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
795 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
796 |
javaHomesOnUNIX |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
797 |
"raise an error: must be redefined in concrete subclass(es)" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
798 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
799 |
^ self shouldNotImplement |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
800 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
801 |
"Modified: / 27-07-2012 / 00:02:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
802 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
803 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
804 |
javaHomesOnWindows |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
805 |
"raise an error: must be redefined in concrete subclass(es)" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
806 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
807 |
^ self shouldNotImplement |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
808 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
809 |
"Modified: / 27-07-2012 / 00:02:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
810 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
811 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
812 |
name |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
813 |
"superclass JavaRelease says that I am responsible to implement this method" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
814 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
815 |
^ 'Custom' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
816 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
817 |
"Modified: / 27-07-2012 / 00:02:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
818 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
819 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
820 |
priority |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
821 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
822 |
^1 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
823 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
824 |
"Created: / 26-07-2012 / 23:38:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
825 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
826 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
827 |
selector |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
828 |
"Returns instance-creation selector to get the receiver. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
829 |
See JavaRelease class, protocol instance creation" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
830 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
831 |
^#custom |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
832 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
833 |
"Created: / 27-07-2012 / 10:04:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
834 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
835 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
836 |
!JavaRelease::Custom methodsFor:'initialization'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
837 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
838 |
initialize |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
839 |
"Initialize lazily in javaHome:" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
840 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
841 |
"Created: / 26-07-2012 / 23:40:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
842 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
843 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
844 |
!JavaRelease::Custom methodsFor:'queries'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
845 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
846 |
isAvailable |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
847 |
^true |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
848 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
849 |
"Created: / 26-07-2012 / 23:35:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
850 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
851 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
852 |
isCustom |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
853 |
^true |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
854 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
855 |
"Created: / 27-07-2012 / 00:08:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
856 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
857 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
858 |
!JavaRelease::Custom methodsFor:'searching'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
859 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
860 |
searchForJavaHome |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
861 |
self shouldNotImplement |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
862 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
863 |
"Created: / 26-07-2012 / 23:34:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
864 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
865 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
866 |
!JavaRelease::OpenJDK6 class methodsFor:'documentation'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
867 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
868 |
copyright |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
869 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
870 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
871 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
872 |
New code and modifications done at SWING Research Group [1]: |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
873 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
874 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
875 |
SWING Research Group, Czech Technical University in Prague |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
876 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
877 |
This software is furnished under a license and may be used |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
878 |
only in accordance with the terms of that license and with the |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
879 |
inclusion of the above copyright notice. This software may not |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
880 |
be provided or otherwise made available to, or used by, any |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
881 |
other person. No title to or ownership of the software is |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
882 |
hereby transferred. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
883 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
884 |
[1] Code written at SWING Research Group contains a signature |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
885 |
of one of the above copright owners. For exact set of such code, |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
886 |
see the differences between this version and version stx:libjava |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
887 |
as of 1.9.2010 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
888 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
889 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
890 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
891 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
892 |
version_SVN |
1876
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
893 |
^ '§Id:: §' |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
894 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
895 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
896 |
!JavaRelease::OpenJDK6 methodsFor:'accessing'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
897 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
898 |
javaExtDirsOnUNIX |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
899 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
900 |
^{ |
1896
60ecc813442c
Bugfix: JavaRelease::OpenJDK6 ext directory construction.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1890
diff
changeset
|
901 |
self jreHome asFilename / 'lib' / 'ext' . |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
902 |
'/usr/java/packages/lib/ext' asFilename |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
903 |
} |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
904 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
905 |
"Created: / 31-08-2011 / 20:01:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1896
60ecc813442c
Bugfix: JavaRelease::OpenJDK6 ext directory construction.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1890
diff
changeset
|
906 |
"Modified: / 16-12-2012 / 15:46:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
907 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
908 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
909 |
javaExtDirsOnWindows |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
910 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
911 |
^{ |
1896
60ecc813442c
Bugfix: JavaRelease::OpenJDK6 ext directory construction.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1890
diff
changeset
|
912 |
self jreHome asFilename / 'lib' / 'ext' . |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
913 |
} |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
914 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
915 |
"Created: / 31-08-2011 / 20:02:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1896
60ecc813442c
Bugfix: JavaRelease::OpenJDK6 ext directory construction.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1890
diff
changeset
|
916 |
"Modified: / 16-12-2012 / 15:46:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
917 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
918 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
919 |
javaHomesOnUNIX |
1924
894ac7aac7a7
Bugfix: JavaRelease>>OpenJDK6>>classPathOnUnix.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1896
diff
changeset
|
920 |
| arch | |
894ac7aac7a7
Bugfix: JavaRelease>>OpenJDK6>>classPathOnUnix.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1896
diff
changeset
|
921 |
|
894ac7aac7a7
Bugfix: JavaRelease>>OpenJDK6>>classPathOnUnix.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1896
diff
changeset
|
922 |
arch := OperatingSystem getSystemInfo at:#machine. |
894ac7aac7a7
Bugfix: JavaRelease>>OpenJDK6>>classPathOnUnix.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1896
diff
changeset
|
923 |
arch = 'x86_64' ifTrue:[arch := 'amd64']. |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
924 |
|
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
925 |
^ { |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
926 |
'/usr/lib/jvm/java-6-openjdk' . "/ JDK - older linuxes |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
927 |
'/usr/lib/jvm/java-6-openjdk-',arch. "/ JDK - newer linuxes |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
928 |
|
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
929 |
'/usr/lib/jvm/java-6-openjdk/jre' . "/ JRE - older linuxes |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
930 |
'/usr/lib/jvm/java-6-openjdk-',arch, '/jre' "/ JRE - newer linuxes |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
931 |
|
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
932 |
} |
1924
894ac7aac7a7
Bugfix: JavaRelease>>OpenJDK6>>classPathOnUnix.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1896
diff
changeset
|
933 |
|
894ac7aac7a7
Bugfix: JavaRelease>>OpenJDK6>>classPathOnUnix.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1896
diff
changeset
|
934 |
" |
894ac7aac7a7
Bugfix: JavaRelease>>OpenJDK6>>classPathOnUnix.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1896
diff
changeset
|
935 |
JavaRelease::OpenJDK6 new javaHomesOnUNIX |
894ac7aac7a7
Bugfix: JavaRelease>>OpenJDK6>>classPathOnUnix.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1896
diff
changeset
|
936 |
" |
894ac7aac7a7
Bugfix: JavaRelease>>OpenJDK6>>classPathOnUnix.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1896
diff
changeset
|
937 |
|
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
938 |
"Modified: / 23-01-2013 / 12:19:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
939 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
940 |
|
2032
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
941 |
javaHomesOnWindows |
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
942 |
"raise an error: must be redefined in concrete subclass(es)" |
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
943 |
|
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
944 |
^ #() "/ There is nothing like Open JDK 6 for Windows!! |
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
945 |
|
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
946 |
"Modified: / 06-02-2013 / 13:37:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
947 |
! |
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
948 |
|
1971
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
949 |
javaNativeMethodsImplementation |
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
950 |
"Returns an object that imolements native methods." |
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
951 |
|
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
952 |
^ JavaNativeMethodImpl_OpenJDK6 |
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
953 |
|
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
954 |
"Modified: / 16-01-2013 / 19:59:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
955 |
! |
e75c1790521c
Java native implementation refactoring (phase 1)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1957
diff
changeset
|
956 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
957 |
name |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
958 |
"superclass JavaRelease says that I am responsible to implement this method" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
959 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
960 |
^ 'Open JDK 6' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
961 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
962 |
"Modified: / 27-10-2010 / 19:16:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
963 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
964 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
965 |
priority |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
966 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
967 |
^80 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
968 |
"/^70 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
969 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
970 |
"Created: / 22-11-2010 / 13:35:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
971 |
"Modified: / 04-02-2011 / 06:59:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
972 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
973 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
974 |
selector |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
975 |
"Returns instance-creation selector to get the receiver. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
976 |
See JavaRelease class, protocol instance creation" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
977 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
978 |
^#openJDK6 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
979 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
980 |
"Created: / 27-07-2012 / 10:05:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
981 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
982 |
|
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
983 |
!JavaRelease::OpenJDK6 methodsFor:'object conversions'! |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
984 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
985 |
as_ST_String: aJavaString |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
986 |
"Given a java.lang.String instance, returns a coresponfing |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
987 |
Smalltalk String" |
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
988 |
|
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
989 |
| str count offs start stop | |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
990 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
991 |
aJavaString isNil ifTrue: [ ^ nil ]. |
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
992 |
|
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
993 |
"/ count := aJavaString instVarNamed:'count'. |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
994 |
|
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
995 |
count := aJavaString instVarAt: 3+1"lockWord". |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
996 |
|
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
997 |
"/ str := aJavaString instVarNamed:'value' |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
998 |
|
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
999 |
str := aJavaString instVarAt: 1+1"lockWord". |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1000 |
str size == count |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1001 |
ifTrue: |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1002 |
[ "cos I don't see any reason to do this" |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1003 |
"/ ^ str asOneByteString. |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1004 |
^ str ]. |
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1005 |
|
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1006 |
"/ offs := (aJavaString instVarNamed:'offset'). |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1007 |
|
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1008 |
offs := aJavaString instVarAt: 2+1"lockWord". |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1009 |
|
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1010 |
"/ start := offs + 1. |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1011 |
|
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1012 |
start := offs + 1. |
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1013 |
|
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1014 |
"/ stop := start + (aJavaString instVarNamed:'count') - 1. |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1015 |
|
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1016 |
stop := start + count - 1. |
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1017 |
|
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1018 |
"/ ^ ((aJavaString instVarNamed:'value') copyFrom:start to:stop) asString |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1019 |
|
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1020 |
^ (str copyFrom: start to: stop) asOneByteString |
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1021 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1022 |
"Created: / 08-08-1997 / 12:02:55 / cg" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1023 |
"Modified: / 04-01-1999 / 23:55:08 / cg" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1024 |
"Modified: / 22-03-2011 / 17:21:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1025 |
"Modified: / 08-02-2013 / 00:56:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1026 |
! |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1027 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1028 |
as_String:aString |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1029 |
"Given a Smalltalk string, returns corresponsing instance of |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1030 |
java.lang.String" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1031 |
|
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1032 |
"hard-coding internas of java.lang.String here is bad ..." |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1033 |
|
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1034 |
|s| |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1035 |
|
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1036 |
s := Java java_lang_String basicNew. |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1037 |
s instVarAt:1+1"_lockWord_" put: aString. |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1038 |
s instVarAt:3+1"_lockWord_" put: aString size. |
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1039 |
^ s |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1040 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1041 |
" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1042 |
Java as_String:'hello world' |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1043 |
" |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1044 |
|
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1045 |
"Created: / 07-08-1997 / 21:15:49 / cg" |
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1046 |
"Modified: / 08-02-2013 / 00:58:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2038
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1047 |
! ! |
db10e16e211d
Moved Java>>#as_String and #as_ST_String to JavaRelease as they are release-specific.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2032
diff
changeset
|
1048 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1049 |
!JavaRelease::OpenJDK6 methodsFor:'private'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1050 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1051 |
javaHomeOnWindowsJDKDirectoryPrefix |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1052 |
^'jdk1.6' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1053 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1054 |
"Created: / 19-07-2012 / 11:04:34 / jv" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1055 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1056 |
|
1925
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1057 |
!JavaRelease::OpenJDK6 methodsFor:'searching'! |
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1058 |
|
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1059 |
searchForSourcePath |
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1060 |
|
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
1061 |
| jdkHome src_zip | |
1925
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1062 |
|
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1063 |
super searchForSourcePath. |
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1064 |
|
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1065 |
sourcePath := OrderedCollection new. |
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
1066 |
jdkHome := self jdkHome. |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
1067 |
jdkHome notNil ifTrue:[ |
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
1068 |
src_zip := jdkHome asFilename / 'src.zip'. |
1949
a83c0afe06a4
Initial implementation of Java libraries and bundles.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1927
diff
changeset
|
1069 |
src_zip exists ifTrue:[sourcePath add: src_zip pathName]. |
1925
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1070 |
]. |
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1071 |
|
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1072 |
" |
2030
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1073 |
JavaRelease openJDK7 searchForSourcePath; sourcePath |
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1074 |
JavaRelease sunJDK6 searchForSourcePath; sourcePath |
1925
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1075 |
" |
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1076 |
|
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1077 |
"Created: / 03-09-2012 / 18:38:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
1078 |
"Modified: / 23-01-2013 / 12:22:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2030
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1079 |
"Modified (comment): / 06-02-2013 / 12:55:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1925
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1080 |
! ! |
e159b0acb161
Bugfix: OpenJDK6>>searchForSourcePath.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1924
diff
changeset
|
1081 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1082 |
!JavaRelease::OpenJDK7 class methodsFor:'documentation'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1083 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1084 |
copyright |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1085 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1086 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1087 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1088 |
New code and modifications done at SWING Research Group [1]: |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1089 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1090 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1091 |
SWING Research Group, Czech Technical University in Prague |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1092 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1093 |
This software is furnished under a license and may be used |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1094 |
only in accordance with the terms of that license and with the |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1095 |
inclusion of the above copyright notice. This software may not |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1096 |
be provided or otherwise made available to, or used by, any |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1097 |
other person. No title to or ownership of the software is |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1098 |
hereby transferred. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1099 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1100 |
[1] Code written at SWING Research Group contains a signature |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1101 |
of one of the above copright owners. For exact set of such code, |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1102 |
see the differences between this version and version stx:libjava |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1103 |
as of 1.9.2010 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1104 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1105 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1106 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1107 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1108 |
version_SVN |
1876
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
1109 |
^ '§Id:: §' |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1110 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1111 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1112 |
!JavaRelease::OpenJDK7 methodsFor:'accessing'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1113 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1114 |
javaHomesOnUNIX |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1115 |
| arch | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1116 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1117 |
arch := OperatingSystem getSystemInfo at:#machine. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1118 |
arch = 'x86_64' ifTrue:[arch := 'amd64']. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1119 |
|
2039
e17b8976d5d4
Bugfix in JavaRelease: fixed JAVA_HOME paths.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2038
diff
changeset
|
1120 |
^ { |
e17b8976d5d4
Bugfix in JavaRelease: fixed JAVA_HOME paths.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2038
diff
changeset
|
1121 |
'/usr/lib/jvm/java-7-openjdk' . "/ JDK - older linuxes |
e17b8976d5d4
Bugfix in JavaRelease: fixed JAVA_HOME paths.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2038
diff
changeset
|
1122 |
'/usr/lib/jvm/java-7-openjdk-',arch. "/ JDK - newer linuxes |
e17b8976d5d4
Bugfix in JavaRelease: fixed JAVA_HOME paths.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2038
diff
changeset
|
1123 |
|
e17b8976d5d4
Bugfix in JavaRelease: fixed JAVA_HOME paths.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2038
diff
changeset
|
1124 |
'/usr/lib/jvm/java-7-openjdk/jre' . "/ JRE - older linuxes |
e17b8976d5d4
Bugfix in JavaRelease: fixed JAVA_HOME paths.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2038
diff
changeset
|
1125 |
'/usr/lib/jvm/java-7-openjdk-',arch, '/jre' "/ JRE - newer linuxes |
e17b8976d5d4
Bugfix in JavaRelease: fixed JAVA_HOME paths.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2038
diff
changeset
|
1126 |
} |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1127 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1128 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1129 |
JavaRelease::OpenJDK7 new javaHomesOnUNIX |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1130 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1131 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1132 |
"Created: / 11-02-2012 / 17:47:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2039
e17b8976d5d4
Bugfix in JavaRelease: fixed JAVA_HOME paths.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2038
diff
changeset
|
1133 |
"Modified: / 07-02-2013 / 20:22:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1134 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1135 |
|
2032
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
1136 |
javaHomesOnWindows |
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
1137 |
"raise an error: must be redefined in concrete subclass(es)" |
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
1138 |
|
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
1139 |
^ #() "/ not yet implemented |
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
1140 |
|
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
1141 |
"Modified: / 06-02-2013 / 13:37:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
1142 |
! |
a608db754986
Bugfix in JavaRelease: added subclass responsibilities.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2030
diff
changeset
|
1143 |
|
2041
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2040
diff
changeset
|
1144 |
javaNativeMethodsImplementation |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2040
diff
changeset
|
1145 |
"Returns an object that imolements native methods." |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2040
diff
changeset
|
1146 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2040
diff
changeset
|
1147 |
^ JavaNativeMethodImpl_OpenJDK7 |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2040
diff
changeset
|
1148 |
|
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2040
diff
changeset
|
1149 |
"Created: / 07-02-2013 / 20:53:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2040
diff
changeset
|
1150 |
! |
eb765dbc5b59
Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2040
diff
changeset
|
1151 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1152 |
name |
2047
a9663b617b2a
Added support for environment variables to control release, JIT and native method optimization.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2042
diff
changeset
|
1153 |
^ 'Open JDK 7' |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1154 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1155 |
"Created: / 27-07-2012 / 00:03:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2047
a9663b617b2a
Added support for environment variables to control release, JIT and native method optimization.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2042
diff
changeset
|
1156 |
"Modified: / 08-02-2013 / 10:23:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1157 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1158 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1159 |
priority |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1160 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1161 |
^ super priority - 10 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1162 |
"/^70 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1163 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1164 |
"Modified: / 04-02-2011 / 06:59:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1165 |
"Created: / 11-02-2012 / 17:47:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1166 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1167 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1168 |
selector |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1169 |
"Returns instance-creation selector to get the receiver. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1170 |
See JavaRelease class, protocol instance creation" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1171 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1172 |
^#openJDK7 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1173 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1174 |
"Created: / 27-07-2012 / 10:05:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1175 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1176 |
|
2040
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1177 |
!JavaRelease::OpenJDK7 methodsFor:'object conversions'! |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1178 |
|
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1179 |
as_ST_String: aJavaString |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1180 |
"Given a java.lang.String instance, returns a coresponfing |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1181 |
Smalltalk String" |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1182 |
|
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1183 |
^aJavaString instVarAt: 1+1"_lockWord_". |
2040
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1184 |
|
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1185 |
"Created: / 08-08-1997 / 12:02:55 / cg" |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1186 |
"Modified: / 04-01-1999 / 23:55:08 / cg" |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1187 |
"Modified: / 22-03-2011 / 17:21:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>" |
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1188 |
"Modified: / 08-02-2013 / 00:58:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2040
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1189 |
! |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1190 |
|
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1191 |
as_String:aString |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1192 |
"Given a Smalltalk string, returns corresponsing instance of |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1193 |
java.lang.String" |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1194 |
|
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1195 |
|s| |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1196 |
|
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1197 |
s := Java java_lang_String basicNew. |
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1198 |
s instVarAt:1+1"_lockWord_" put: aString. |
2040
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1199 |
^s |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1200 |
|
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1201 |
" |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1202 |
Java as_String:'hello world' |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1203 |
" |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1204 |
|
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1205 |
"Created: / 07-08-1997 / 21:15:49 / cg" |
2042
b6302ebec0b4
Reverted old #as_String and #as_ST_String, stc cannot handle shared pools correctly.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2041
diff
changeset
|
1206 |
"Modified: / 08-02-2013 / 00:57:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2040
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1207 |
! ! |
d8f28ec5b1fe
#as_String: and as_ST_String: implementation for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2039
diff
changeset
|
1208 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1209 |
!JavaRelease::OpenJDK7 methodsFor:'private'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1210 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1211 |
javaHomeOnWindowsJDKDirectoryPrefix |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1212 |
^'jdk1.7' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1213 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1214 |
"Created: / 19-07-2012 / 11:05:02 / jv" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1215 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1216 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1217 |
!JavaRelease::SunJDK122 class methodsFor:'documentation'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1218 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1219 |
copyright |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1220 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1221 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1222 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1223 |
New code and modifications done at SWING Research Group [1]: |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1224 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1225 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1226 |
SWING Research Group, Czech Technical University in Prague |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1227 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1228 |
This software is furnished under a license and may be used |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1229 |
only in accordance with the terms of that license and with the |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1230 |
inclusion of the above copyright notice. This software may not |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1231 |
be provided or otherwise made available to, or used by, any |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1232 |
other person. No title to or ownership of the software is |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1233 |
hereby transferred. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1234 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1235 |
[1] Code written at SWING Research Group contains a signature |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1236 |
of one of the above copright owners. For exact set of such code, |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1237 |
see the differences between this version and version stx:libjava |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1238 |
as of 1.9.2010 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1239 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1240 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1241 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1242 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1243 |
version_SVN |
1876
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
1244 |
^ '§Id:: §' |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1245 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1246 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1247 |
!JavaRelease::SunJDK122 methodsFor:'accessing'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1248 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1249 |
javaHomesOnUNIX |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1250 |
"superclass JavaRelease says that I am responsible to implement this method" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1251 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1252 |
^#( |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1253 |
'/home/jv/Projects/JavaX/jdk1.2.2' "/On Jan Vrany's machine :-) |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1254 |
) |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1255 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1256 |
"Created: / 22-11-2010 / 13:26:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1257 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1258 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1259 |
javaHomesOnWindows |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1260 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1261 |
^ #() |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1262 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1263 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1264 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1265 |
name |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1266 |
"superclass JavaRelease says that I am responsible to implement this method" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1267 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1268 |
^ 'Sun JDK 1.2.2' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1269 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1270 |
"Modified: / 27-07-2012 / 00:14:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1271 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1272 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1273 |
priority |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1274 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1275 |
^10 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1276 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1277 |
"Created: / 22-11-2010 / 13:34:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1278 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1279 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1280 |
selector |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1281 |
"Returns instance-creation selector to get the receiver. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1282 |
See JavaRelease class, protocol instance creation" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1283 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1284 |
^#sunJDK122 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1285 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1286 |
"Created: / 27-07-2012 / 10:06:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1287 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1288 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1289 |
!JavaRelease::SunJDK122 methodsFor:'displaying'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1290 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1291 |
displayString |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1292 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1293 |
^self isAvailable ifTrue:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1294 |
self name |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1295 |
] ifFalse:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1296 |
(self name , ' ' , '(not available)') asText colorizeAllWith: Color gray |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1297 |
] |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1298 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1299 |
"Created: / 27-07-2012 / 00:13:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1300 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1301 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1302 |
!JavaRelease::SunJDK122 methodsFor:'queries'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1303 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1304 |
isAvailable |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1305 |
"We don't really support it" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1306 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1307 |
^false |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1308 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1309 |
"Created: / 27-07-2012 / 00:04:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1310 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1311 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1312 |
!JavaRelease::SunJDK6 class methodsFor:'documentation'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1313 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1314 |
copyright |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1315 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1316 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1317 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1318 |
New code and modifications done at SWING Research Group [1]: |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1319 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1320 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1321 |
SWING Research Group, Czech Technical University in Prague |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1322 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1323 |
This software is furnished under a license and may be used |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1324 |
only in accordance with the terms of that license and with the |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1325 |
inclusion of the above copyright notice. This software may not |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1326 |
be provided or otherwise made available to, or used by, any |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1327 |
other person. No title to or ownership of the software is |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1328 |
hereby transferred. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1329 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1330 |
[1] Code written at SWING Research Group contains a signature |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1331 |
of one of the above copright owners. For exact set of such code, |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1332 |
see the differences between this version and version stx:libjava |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1333 |
as of 1.9.2010 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1334 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1335 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1336 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1337 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1338 |
version_SVN |
1876
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
1339 |
^ '§Id:: §' |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1340 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1341 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1342 |
!JavaRelease::SunJDK6 methodsFor:'accessing'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1343 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1344 |
javaHomesOnUNIX |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1345 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1346 |
^ #( '/usr/lib/jvm/java-6-sun' ) |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1347 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1348 |
"Created: / 22-11-2010 / 13:31:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1349 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1350 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1351 |
javaHomesOnWindows |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1352 |
|entry vsn home paths | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1353 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1354 |
entry := (OperatingSystem registryEntry key:'HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit'). |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1355 |
entry notNil ifTrue:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1356 |
vsn := entry valueNamed:'CurrentVersion'. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1357 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1358 |
vsn notNil ifTrue:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1359 |
entry := (OperatingSystem registryEntry |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1360 |
key:'HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\',vsn). |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1361 |
home := entry valueNamed:'JavaHome'. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1362 |
home notNil ifTrue:[ |
2030
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1363 |
^ (Array with:(home)) |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1364 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1365 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1366 |
paths := OrderedCollection new. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1367 |
#( |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1368 |
'C:\Program Files\Java' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1369 |
'C:\Program Files (x86)\Java' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1370 |
) do:[:rootpath| |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1371 |
| root | |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1372 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1373 |
root := rootpath asFilename. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1374 |
root exists ifTrue:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1375 |
root directoryContents do:[:dir| |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1376 |
(dir startsWith:self javaHomeOnWindowsJDKDirectoryPrefix) ifTrue:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1377 |
| path | |
2030
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1378 |
(path := root / dir) isDirectory ifTrue:[ |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1379 |
paths add: path |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1380 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1381 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1382 |
] |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1383 |
] |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1384 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1385 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1386 |
^ paths |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1387 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1388 |
" |
2030
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1389 |
self basicNew javaHomesOnWindows |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1390 |
" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1391 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1392 |
"Modified (format): / 19-08-2011 / 00:46:40 / cg" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1393 |
"Modified: / 19-07-2012 / 11:04:44 / jv" |
2030
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1394 |
"Modified (comment): / 06-02-2013 / 12:58:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1395 |
! |
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1396 |
|
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1397 |
javaNativeMethodsImplementation |
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1398 |
"Returns an object that imolements native methods." |
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1399 |
|
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1400 |
^ JavaNativeMethodImpl_SunJDK6 |
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1401 |
|
ab90530b3a2c
Bugfix in JavaRelease: set #javaHome to JDK if installed.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2008
diff
changeset
|
1402 |
"Created: / 06-02-2013 / 08:39:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1403 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1404 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1405 |
name |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1406 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1407 |
^ 'Sun JDK 6' |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1408 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1409 |
"Created: / 22-11-2010 / 13:31:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1410 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1411 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1412 |
priority |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1413 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1414 |
"/There is no OpenJDK 6 for Windows yet... |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1415 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1416 |
^100 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1417 |
]. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1418 |
^75 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1419 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1420 |
"Created: / 22-11-2010 / 13:35:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1421 |
"Modified: / 19-07-2012 / 10:57:55 / jv" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1422 |
! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1423 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1424 |
selector |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1425 |
"Returns instance-creation selector to get the receiver. |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1426 |
See JavaRelease class, protocol instance creation" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1427 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1428 |
^#sunJDK6 |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1429 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1430 |
"Created: / 27-07-2012 / 10:05:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1431 |
! ! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1432 |
|
2052
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1433 |
!JavaRelease::SunJDK7 class methodsFor:'documentation'! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1434 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1435 |
copyright |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1436 |
" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1437 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1438 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1439 |
New code and modifications done at SWING Research Group [1]: |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1440 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1441 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1442 |
SWING Research Group, Czech Technical University in Prague |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1443 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1444 |
This software is furnished under a license and may be used |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1445 |
only in accordance with the terms of that license and with the |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1446 |
inclusion of the above copyright notice. This software may not |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1447 |
be provided or otherwise made available to, or used by, any |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1448 |
other person. No title to or ownership of the software is |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1449 |
hereby transferred. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1450 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1451 |
[1] Code written at SWING Research Group contains a signature |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1452 |
of one of the above copright owners. For exact set of such code, |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1453 |
see the differences between this version and version stx:libjava |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1454 |
as of 1.9.2010 |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1455 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1456 |
" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1457 |
! ! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1458 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1459 |
!JavaRelease::SunJDK7 methodsFor:'accessing'! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1460 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1461 |
javaHomesOnUNIX |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1462 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1463 |
^ #( '/usr/lib/jvm/java-7-sun' ) |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1464 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1465 |
"Created: / 22-11-2010 / 13:31:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1466 |
"Modified: / 11-02-2013 / 02:49:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1467 |
! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1468 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1469 |
javaHomesOnWindows |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1470 |
|entry vsn home paths | |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1471 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1472 |
entry := (OperatingSystem registryEntry key:'HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit'). |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1473 |
entry notNil ifTrue:[ |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1474 |
vsn := entry valueNamed:'CurrentVersion'. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1475 |
]. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1476 |
vsn notNil ifTrue:[ |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1477 |
entry := (OperatingSystem registryEntry |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1478 |
key:'HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\',vsn). |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1479 |
home := entry valueNamed:'JavaHome'. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1480 |
home notNil ifTrue:[ |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1481 |
^ (Array with:(home)) |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1482 |
]. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1483 |
]. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1484 |
paths := OrderedCollection new. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1485 |
#( |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1486 |
'C:\Program Files\Java' |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1487 |
'C:\Program Files (x86)\Java' |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1488 |
) do:[:rootpath| |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1489 |
| root | |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1490 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1491 |
root := rootpath asFilename. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1492 |
root exists ifTrue:[ |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1493 |
root directoryContents do:[:dir| |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1494 |
(dir startsWith:self javaHomeOnWindowsJDKDirectoryPrefix) ifTrue:[ |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1495 |
| path | |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1496 |
(path := root / dir) isDirectory ifTrue:[ |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1497 |
paths add: path |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1498 |
]. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1499 |
]. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1500 |
] |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1501 |
] |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1502 |
]. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1503 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1504 |
^ paths |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1505 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1506 |
" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1507 |
self basicNew javaHomesOnWindows |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1508 |
" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1509 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1510 |
"Modified (format): / 19-08-2011 / 00:46:40 / cg" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1511 |
"Modified: / 19-07-2012 / 11:04:44 / jv" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1512 |
"Modified (comment): / 06-02-2013 / 12:58:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1513 |
! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1514 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1515 |
javaNativeMethodsImplementation |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1516 |
"Returns an object that imolements native methods." |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1517 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1518 |
^ JavaNativeMethodImpl_SunJDK7 |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1519 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1520 |
"Created: / 06-02-2013 / 08:39:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1521 |
"Modified: / 11-02-2013 / 02:50:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1522 |
! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1523 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1524 |
name |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1525 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1526 |
^ 'Sun JDK 7' |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1527 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1528 |
"Created: / 22-11-2010 / 13:31:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1529 |
"Modified: / 11-02-2013 / 02:51:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1530 |
! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1531 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1532 |
priority |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1533 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1534 |
"/There is no OpenJDK 6 for Windows yet... |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1535 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1536 |
^100 |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1537 |
]. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1538 |
^75 |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1539 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1540 |
"Created: / 22-11-2010 / 13:35:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1541 |
"Modified: / 19-07-2012 / 10:57:55 / jv" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1542 |
! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1543 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1544 |
selector |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1545 |
"Returns instance-creation selector to get the receiver. |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1546 |
See JavaRelease class, protocol instance creation" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1547 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1548 |
^#sunJDK7 |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1549 |
|
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1550 |
"Created: / 27-07-2012 / 10:05:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1551 |
"Modified: / 11-02-2013 / 03:23:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1552 |
! ! |
e65c246adabc
Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2047
diff
changeset
|
1553 |
|
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1554 |
!JavaRelease class methodsFor:'documentation'! |
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1555 |
|
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1556 |
version_SVN |
1876
482ad5ebe5da
Merged some fixes from jv's repo
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1873
diff
changeset
|
1557 |
^ '§Id:: §' |
1578
ecd2bdfbf796
Commited lost JavaRelease.st (failed to file out last time :-(
vranyj1
parents:
1577
diff
changeset
|
1558 |
! ! |
1988
0fcf5a5dcb66
Cleanup in JavaRelease: javaHome/jreHome/jdkHome.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1963
diff
changeset
|
1559 |