author | vranyj1 |
Tue, 26 Jul 2011 16:31:02 +0000 | |
branch | jk_new_structure |
changeset 877 | f5a5b93e1c78 |
parent 870 | d6c358a55381 |
child 970 | cb62284d4145 |
permissions | -rw-r--r-- |
877 | 1 |
" |
2 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
3 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
|
4 |
SWING Research Group, Czech Technical University in Prague |
|
5 |
||
6 |
Parts of the code written by Claus Gittinger are under following |
|
7 |
license: |
|
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 |
||
16 |
Parts of the code written at SWING Reasearch Group [1] are MIT licensed: |
|
17 |
||
18 |
Permission is hereby granted, free of charge, to any person |
|
19 |
obtaining a copy of this software and associated documentation |
|
20 |
files (the 'Software'), to deal in the Software without |
|
21 |
restriction, including without limitation the rights to use, |
|
22 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
23 |
copies of the Software, and to permit persons to whom the |
|
24 |
Software is furnished to do so, subject to the following |
|
25 |
conditions: |
|
26 |
||
27 |
The above copyright notice and this permission notice shall be |
|
28 |
included in all copies or substantial portions of the Software. |
|
29 |
||
30 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
31 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
32 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
33 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
34 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
35 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
36 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
37 |
OTHER DEALINGS IN THE SOFTWARE. |
|
38 |
||
39 |
[1] Code written at SWING Research Group contain a signature |
|
40 |
of one of the above copright owners. |
|
41 |
" |
|
752 | 42 |
"{ Package: 'stx:libjava' }" |
43 |
||
867 | 44 |
JavaAntProjectResource subclass:#JavaTestsResource |
752 | 45 |
instanceVariableNames:'' |
46 |
classVariableNames:'' |
|
47 |
poolDictionaries:'' |
|
48 |
category:'Languages-Java-Tests' |
|
49 |
! |
|
50 |
||
877 | 51 |
!JavaTestsResource class methodsFor:'documentation'! |
52 |
||
53 |
copyright |
|
54 |
" |
|
55 |
COPYRIGHT (c) 1996-2011 by Claus Gittinger |
|
56 |
COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko |
|
57 |
SWING Research Group, Czech Technical University in Prague |
|
58 |
||
59 |
Parts of the code written by Claus Gittinger are under following |
|
60 |
license: |
|
61 |
||
62 |
This software is furnished under a license and may be used |
|
63 |
only in accordance with the terms of that license and with the |
|
64 |
inclusion of the above copyright notice. This software may not |
|
65 |
be provided or otherwise made available to, or used by, any |
|
66 |
other person. No title to or ownership of the software is |
|
67 |
hereby transferred. |
|
68 |
||
69 |
Parts of the code written at SWING Reasearch Group [1] are MIT licensed: |
|
70 |
||
71 |
Permission is hereby granted, free of charge, to any person |
|
72 |
obtaining a copy of this software and associated documentation |
|
73 |
files (the 'Software'), to deal in the Software without |
|
74 |
restriction, including without limitation the rights to use, |
|
75 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
76 |
copies of the Software, and to permit persons to whom the |
|
77 |
Software is furnished to do so, subject to the following |
|
78 |
conditions: |
|
79 |
||
80 |
The above copyright notice and this permission notice shall be |
|
81 |
included in all copies or substantial portions of the Software. |
|
82 |
||
83 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, |
|
84 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
|
85 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
86 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
87 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
|
88 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
89 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
|
90 |
OTHER DEALINGS IN THE SOFTWARE. |
|
91 |
||
92 |
[1] Code written at SWING Research Group contain a signature |
|
93 |
of one of the above copright owners. |
|
94 |
||
95 |
" |
|
96 |
! ! |
|
752 | 97 |
|
98 |
!JavaTestsResource class methodsFor:'accessing'! |
|
99 |
||
848
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
100 |
classpath |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
101 |
|cp| |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
102 |
|
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
103 |
cp := OrderedCollection new. |
867 | 104 |
self antProjectDir |
849 | 105 |
directoryContentsDo:[:dir | cp := cp , (self classpathFor:dir) ]. |
848
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
106 |
^ cp |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
107 |
|
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
108 |
" |
867 | 109 |
JavaTestsResource classpath" |
848
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
110 |
"Created: / 07-05-2011 / 18:15:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
849 | 111 |
"Modified: / 11-06-2011 / 16:40:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
848
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
112 |
! |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
113 |
|
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
114 |
classpathFor:testProject |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
115 |
|cp dir| |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
116 |
|
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
117 |
cp := OrderedCollection new. |
867 | 118 |
dir := self antProjectDir / testProject. |
848
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
119 |
dir isDirectory |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
120 |
ifTrue: |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
121 |
[ (dir / 'bin') exists ifTrue:[ cp add:(dir / 'bin') asString ]. |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
122 |
(dir / 'lib') exists |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
123 |
ifTrue: |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
124 |
[ cp addAll:((dir / 'lib') directoryContentsAsFilenames |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
125 |
select:[:jar | jar suffix = 'jar' ]) ] ]. |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
126 |
^ cp |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
127 |
|
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
128 |
" |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
129 |
JavaTestsResource testsClasspath" |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
130 |
"Created: / 11-06-2011 / 15:58:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
131 |
! |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
132 |
|
860 | 133 |
classpathForLibjava |
134 |
^ self classpathFor:'libjava' |
|
135 |
||
136 |
" |
|
137 |
JavaTestsResource classpathForLibjava |
|
138 |
" |
|
139 |
||
140 |
"Created: / 21-06-2011 / 17:34:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
141 |
! |
|
142 |
||
848
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
143 |
classpathForMauve |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
144 |
^ self classpathFor:'libjava-mauve' |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
145 |
|
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
146 |
" |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
147 |
JavaTestsResource testsClasspathForMauve" |
b06ee9c295d9
Utility methods to load relevant subset of Mauve test suite
vranyj1
parents:
841
diff
changeset
|
148 |
"Created: / 11-06-2011 / 15:59:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
752 | 149 |
! ! |
150 |
||
870 | 151 |
!JavaTestsResource class methodsFor:'accessing - ant project'! |
152 |
||
153 |
antProjectDir |
|
154 |
||
155 |
^ UserPreferences current javaTestsDirectory asFilename |
|
156 |
||
157 |
"Modified: / 07-05-2011 / 17:57:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
158 |
"Created: / 18-07-2011 / 18:15:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
159 |
! ! |
|
160 |
||
752 | 161 |
!JavaTestsResource class methodsFor:'documentation'! |
162 |
||
163 |
version_SVN |
|
164 |
^ '$Id$' |
|
165 |
! ! |