author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 04 Feb 2019 00:24:10 +0000 | |
changeset 3886 | 292b73957757 |
parent 3598 | 461fc72d0f2f |
permissions | -rw-r--r-- |
749 | 1 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3006
diff
changeset
|
2 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
3 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
4 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
5 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3006
diff
changeset
|
6 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 7 |
SWING Research Group, Czech Technical University in Prague |
8 |
||
9 |
This software is furnished under a license and may be used |
|
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
15 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
16 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
17 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
18 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
19 |
as of 1.9.2010 |
749 | 20 |
" |
21 |
"{ Package: 'stx:libjava' }" |
|
22 |
||
3598
461fc72d0f2f
Cleanup: do not add Java libraries to class path via Java>>addToClassPath:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3412
diff
changeset
|
23 |
"{ NameSpace: Smalltalk }" |
461fc72d0f2f
Cleanup: do not add Java libraries to class path via Java>>addToClassPath:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3412
diff
changeset
|
24 |
|
749 | 25 |
Object subclass:#JavaLibraries |
26 |
instanceVariableNames:'' |
|
3006
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
27 |
classVariableNames:'AntRun' |
749 | 28 |
poolDictionaries:'' |
29 |
category:'Languages-Java-Support' |
|
30 |
! |
|
31 |
||
32 |
!JavaLibraries class methodsFor:'documentation'! |
|
33 |
||
34 |
copyright |
|
35 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3006
diff
changeset
|
36 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
37 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
38 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
39 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3006
diff
changeset
|
40 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 41 |
SWING Research Group, Czech Technical University in Prague |
42 |
||
43 |
This software is furnished under a license and may be used |
|
44 |
only in accordance with the terms of that license and with the |
|
45 |
inclusion of the above copyright notice. This software may not |
|
46 |
be provided or otherwise made available to, or used by, any |
|
47 |
other person. No title to or ownership of the software is |
|
48 |
hereby transferred. |
|
49 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
50 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
51 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
52 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
53 |
as of 1.9.2010 |
749 | 54 |
|
55 |
" |
|
56 |
! ! |
|
57 |
||
58 |
!JavaLibraries class methodsFor:'accessing'! |
|
59 |
||
60 |
directory |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
61 |
| base | |
749 | 62 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
63 |
base := Smalltalk getPackageDirectoryForPackage: 'stx:libjava/libs'. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
64 |
base isNil ifTrue:[ ^ nil ]. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
65 |
^base asFilename / 'java' |
749 | 66 |
|
67 |
" |
|
68 |
JavaLibraries directory |
|
69 |
" |
|
70 |
||
71 |
"Created: / 08-04-2011 / 16:27:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
72 |
"Modified: / 16-11-2012 / 00:11:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 73 |
! ! |
74 |
||
75 |
!JavaLibraries class methodsFor:'private'! |
|
76 |
||
3006
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
77 |
runAnt |
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
78 |
AntRun ~~ true ifTrue:[ |
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
79 |
(OperatingSystem executeCommand:'ant -f build.ivy.xml' |
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
80 |
inDirectory:self directory asString) |
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
81 |
ifFalse:[ |
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
82 |
self error:'Cannot run ant to download libraries!!'. |
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
83 |
^ self |
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
84 |
]. |
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
85 |
AntRun := true |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
86 |
]. |
749 | 87 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
88 |
"Created: / 20-08-2012 / 19:39:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3006
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
89 |
"Modified: / 06-02-2014 / 10:11:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 90 |
! ! |
91 |
||
92 |
!JavaLibraries class methodsFor:'utilities'! |
|
93 |
||
94 |
flush |
|
95 |
||
96 |
self directory recursiveRemove |
|
97 |
||
98 |
"Created: / 08-04-2011 / 16:27:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
99 |
! |
|
100 |
||
101 |
update |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
102 |
(Smalltalk at:#stx_libjava_libs) isNil ifTrue:[ |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
103 |
Smalltalk loadPackage:#'stx:libjava/libs' |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
104 |
]. |
3006
c1c82d3baae7
Use Ant+Ivy instead of Maven to download libraries in stx:libjava/libs
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
105 |
self runAnt. |
749 | 106 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
107 |
" |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
108 |
JavaLibraries flush |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
109 |
JavaLibraries update. |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
110 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
111 |
UserPreferences current fileBrowserClass openOn: self directory |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
112 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
113 |
" |
749 | 114 |
|
115 |
"Created: / 08-04-2011 / 16:29:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
116 |
"Modified: / 16-11-2012 / 00:16:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 117 |
! ! |
118 |
||
119 |
!JavaLibraries class methodsFor:'documentation'! |
|
120 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
121 |
version_CVS |
3412
df11bb428463
Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3360
diff
changeset
|
122 |
^ '$Header: /cvs/stx/stx/libjava/JavaLibraries.st,v 1.8 2015-03-20 12:08:00 vrany Exp $' |
2277
735048b234ea
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2241
diff
changeset
|
123 |
! |
735048b234ea
fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents:
2241
diff
changeset
|
124 |
|
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
125 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
126 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
127 |
^ '$Changeset: <not expanded> $' |
2241 | 128 |
! |
129 |
||
749 | 130 |
version_SVN |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
131 |
^ 'Id' |
2152 | 132 |
! ! |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2277
diff
changeset
|
133 |