author | Stefan Vogel <sv@exept.de> |
Mon, 08 Jun 2015 17:51:54 +0200 | |
changeset 18463 | 8c5f3917b2e8 |
parent 17235 | 6b5be0a1dcb9 |
child 18120 | e3a375d5f6a8 |
child 18504 | 6f09ca3f3a06 |
permissions | -rw-r--r-- |
9571 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
10230 | 12 |
"{ Package: 'stx:libbasic' }" |
9571 | 13 |
|
14 |
Object subclass:#PackageId |
|
15 |
instanceVariableNames:'packageIdString' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Support-Projects' |
|
19 |
! |
|
20 |
||
21 |
!PackageId class methodsFor:'documentation'! |
|
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
37 |
documentation |
|
38 |
" |
|
39 |
Represents packageID's. |
|
40 |
Knows the relationship between modules and directories in the package-organization. |
|
41 |
" |
|
42 |
! ! |
|
43 |
||
44 |
!PackageId class methodsFor:'instance creation'! |
|
45 |
||
46 |
from: aStringOrSymbol |
|
47 |
^ self new packageIdString:aStringOrSymbol |
|
48 |
||
9840 | 49 |
" |
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
50 |
(self from:'stx:libbasic') module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
51 |
(self from:'stx:libbasic') directory |
9840 | 52 |
" |
53 |
||
9571 | 54 |
"Created: / 18-08-2006 / 12:11:58 / cg" |
9840 | 55 |
"Modified: / 12-09-2006 / 15:27:42 / cg" |
56 |
! |
|
57 |
||
58 |
module:moduleString directory:directoryString |
|
59 |
^ self new module:moduleString directory:directoryString |
|
60 |
||
61 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
62 |
(PackageId module:'stx' directory:'libbasic') module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
63 |
(PackageId module:'stx' directory:'libbasic') directory |
9840 | 64 |
" |
65 |
||
66 |
"Created: / 12-09-2006 / 15:26:24 / cg" |
|
10190 | 67 |
"Modified: / 18-11-2006 / 17:09:12 / cg" |
9571 | 68 |
! ! |
69 |
||
12212 | 70 |
!PackageId class methodsFor:'defaults'! |
71 |
||
72 |
noProjectID |
|
73 |
"return the symbol used to tag classes and methods which are loose. |
|
74 |
This means: not yet assigned to a particular project." |
|
75 |
||
76 |
^ #'__NoProject__'. |
|
77 |
! ! |
|
78 |
||
9571 | 79 |
!PackageId methodsFor:'accessing'! |
80 |
||
14570 | 81 |
directory |
82 |
"return the directory component. That's the rest after the colon. |
|
83 |
The module is typically used to define the project-path or project-id within its |
|
84 |
sourcecode repository (which is selected via the module)." |
|
85 |
||
86 |
|idx| |
|
87 |
||
88 |
idx := packageIdString indexOf:$:. |
|
89 |
idx == 0 ifTrue:[ |
|
90 |
^ ''. |
|
91 |
]. |
|
92 |
^ packageIdString copyFrom:idx+1 |
|
93 |
||
94 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
95 |
(PackageId from:'stx:libbasic') module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
96 |
(PackageId from:'stx:libbasic') directory |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
97 |
(PackageId from:'stx') module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
98 |
(PackageId from:'stx') directory |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
99 |
(PackageId from:'stx:goodies/xml/stx') module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
100 |
(PackageId from:'stx:goodies/xml/stx') directory |
14570 | 101 |
" |
102 |
||
103 |
"Created: / 18-08-2006 / 12:15:33 / cg" |
|
104 |
"Modified: / 28-11-2006 / 11:39:14 / cg" |
|
105 |
"Modified (comment): / 19-09-2011 / 11:01:08 / cg" |
|
106 |
! |
|
107 |
||
108 |
module |
|
109 |
"return the module component. That's the first component up to the colon. |
|
110 |
The module is typically used to select a corresponding sourcecode repository." |
|
111 |
||
112 |
|idx| |
|
113 |
||
114 |
idx := packageIdString indexOf:$:. |
|
115 |
idx == 0 ifTrue:[ |
|
116 |
^ packageIdString. |
|
117 |
]. |
|
118 |
^ packageIdString copyTo:idx-1 |
|
119 |
||
120 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
121 |
(PackageId from:'stx:libbasic') module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
122 |
(PackageId from:'stx:libbasic') directory |
14570 | 123 |
" |
124 |
||
125 |
"Created: / 18-08-2006 / 12:13:53 / cg" |
|
126 |
"Modified: / 27-12-2006 / 11:51:25 / cg" |
|
127 |
"Modified (comment): / 19-09-2011 / 11:01:15 / cg" |
|
128 |
! |
|
129 |
||
9840 | 130 |
module:moduleString directory:directoryString |
14570 | 131 |
|ds| |
132 |
||
133 |
(directoryString includes:$\) ifTrue:[ |
|
134 |
ds := directoryString asFilename components asStringWith:$/. |
|
135 |
] ifFalse:[ |
|
136 |
ds := directoryString |
|
137 |
]. |
|
138 |
packageIdString := (moduleString,':',ds) asSymbol. |
|
139 |
||
140 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
141 |
(self new module:'stx' directory:'libbasic') module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
142 |
(self new module:'stx' directory:'libbasic') directory |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
143 |
(self new module:'stx' directory:'goodies/net') module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
144 |
(self new module:'stx' directory:'goodies/net') directory |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
145 |
(self new module:'stx' directory:'goodies\net') module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
146 |
(self new module:'stx' directory:'goodies\net') directory |
14570 | 147 |
" |
9840 | 148 |
|
149 |
"Created: / 12-09-2006 / 15:26:48 / cg" |
|
150 |
! |
|
151 |
||
14570 | 152 |
packageIdString:aString |
153 |
"the required format is: |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
154 |
module:path |
14570 | 155 |
where path is a unix-like path (i.e. containing slashes). |
156 |
However, for our convenience, also allow for |
|
157 |
module/path |
|
158 |
and even: |
|
159 |
module\ms-dos-path |
|
160 |
and convert them as required. |
|
161 |
This makes it easier on a doit, by copy-pasting port of a path into a loadPackage |
|
162 |
expression" |
|
163 |
||
164 |
|components| |
|
165 |
||
166 |
(aString includes:$:) ifFalse:[ |
|
167 |
"/ assume its a path |
|
168 |
components := aString asFilename components. |
|
169 |
self module:components first directory:((components copyFrom:2) asStringWith:$/). |
|
170 |
] ifTrue:[ |
|
171 |
packageIdString := aString asSymbol. |
|
172 |
] |
|
173 |
||
174 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
175 |
'stx:libbasic' asPackageId module |
14570 | 176 |
'stx:libbasic' asPackageId directory |
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
177 |
'stx/goodies/net' asPackageId module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
178 |
'stx/goodies/net' asPackageId directory |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
179 |
'stx\goodies\net' asPackageId module |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
180 |
'stx\goodies\net' asPackageId directory |
14570 | 181 |
" |
9571 | 182 |
|
183 |
"Created: / 18-08-2006 / 12:14:45 / cg" |
|
184 |
! |
|
185 |
||
186 |
string |
|
187 |
^ packageIdString |
|
188 |
||
189 |
"Created: / 18-08-2006 / 12:20:54 / cg" |
|
190 |
! ! |
|
191 |
||
192 |
!PackageId methodsFor:'comparing'! |
|
193 |
||
194 |
= aPackageId |
|
9841 | 195 |
"compares equal to a corresponding string" |
196 |
||
9571 | 197 |
^ packageIdString = aPackageId asPackageId string |
198 |
||
199 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
200 |
'stx:libbasic' asPackageId = 'stx:libbasic' |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
201 |
'stx:libbasic' asPackageId = 'stx:libbasic' asSymbol asPackageId |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
202 |
'stx:libbasic' asPackageId = 'stx:libbasic' asPackageId |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
203 |
'stx:libbasic2' asPackageId = 'stx:libbasic3' asPackageId |
9571 | 204 |
" |
205 |
||
206 |
"Created: / 18-08-2006 / 12:20:47 / cg" |
|
9841 | 207 |
"Modified: / 12-09-2006 / 15:33:00 / cg" |
9571 | 208 |
! |
209 |
||
210 |
hash |
|
211 |
^ packageIdString hash |
|
212 |
||
213 |
"Created: / 18-08-2006 / 12:21:19 / cg" |
|
214 |
! ! |
|
215 |
||
216 |
!PackageId methodsFor:'converting'! |
|
217 |
||
218 |
asPackageId |
|
219 |
^ self |
|
220 |
||
221 |
"Created: / 18-08-2006 / 12:22:10 / cg" |
|
222 |
! |
|
223 |
||
224 |
asString |
|
12185 | 225 |
^ packageIdString asString |
9571 | 226 |
|
227 |
"Created: / 18-08-2006 / 12:12:22 / cg" |
|
228 |
! |
|
229 |
||
230 |
asSymbol |
|
231 |
^ packageIdString asSymbol |
|
232 |
||
233 |
"Created: / 18-08-2006 / 12:12:29 / cg" |
|
234 |
! ! |
|
235 |
||
10075 | 236 |
!PackageId methodsFor:'printing'! |
237 |
||
238 |
printOn:aStream |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
239 |
aStream |
10075 | 240 |
nextPutAll:'PackageId('; nextPutAll:packageIdString; nextPutAll:')' |
241 |
||
242 |
"Created: / 12-10-2006 / 10:30:10 / cg" |
|
243 |
! ! |
|
244 |
||
9577 | 245 |
!PackageId methodsFor:'queries'! |
246 |
||
12329 | 247 |
isModuleId |
248 |
"true if this is a module-id only (i.e. no directory component present). |
|
249 |
These are not allowed to be used as real projects, but only for organization. |
|
250 |
The reason is that this is used as selector to select the sourceCodeManager and |
|
14570 | 251 |
also the manager's repository" |
12329 | 252 |
|
253 |
^ self directory isEmptyOrNil |
|
254 |
! |
|
255 |
||
9577 | 256 |
libraryName |
257 |
"return the name of the library, when compiled to a binary (i.e. dll/so). |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
258 |
To avoid conflicts with the projectDefinition class |
9577 | 259 |
(which is named <module>_<directory_components>), we prefix the library name |
260 |
with 'lib'. This has the added advantage, that under unix, linking can be done with |
|
261 |
'-l'shortName." |
|
262 |
||
263 |
^ 'lib' , (packageIdString copy asString replaceAny:':/' with:$_) |
|
264 |
||
265 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
266 |
(PackageId from:'stx:libbasic') libraryName |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
267 |
(PackageId from:'stx:goodies/xml/stx') libraryName |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
268 |
(PackageId from:'bosch:dapasx') libraryName |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
269 |
(PackageId from:'exept:expecco') libraryName |
9577 | 270 |
" |
271 |
||
272 |
"Created: / 18-08-2006 / 12:35:04 / cg" |
|
273 |
! |
|
274 |
||
16497 | 275 |
packageDirectory |
17234 | 276 |
"return the pathName of the directory for this package in the file system" |
277 |
||
16497 | 278 |
^ Smalltalk packageDirectoryForPackageId:packageIdString. |
279 |
||
280 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
281 |
'stx:libbasic2' asPackageId packageDirectory |
16497 | 282 |
" |
283 |
! |
|
284 |
||
9668 | 285 |
parentPackage |
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
286 |
|dir idx| |
9668 | 287 |
|
288 |
dir := self directory. |
|
10211
6516bfb2ae56
changed #parentPackage - handle nil
Stefan Vogel <sv@exept.de>
parents:
10208
diff
changeset
|
289 |
dir isNil ifTrue:[ |
6516bfb2ae56
changed #parentPackage - handle nil
Stefan Vogel <sv@exept.de>
parents:
10208
diff
changeset
|
290 |
^ nil. |
6516bfb2ae56
changed #parentPackage - handle nil
Stefan Vogel <sv@exept.de>
parents:
10208
diff
changeset
|
291 |
]. |
9668 | 292 |
idx := dir lastIndexOf:$/. |
293 |
idx == 0 ifTrue:[ |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
294 |
^ nil |
9668 | 295 |
]. |
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
296 |
^ self class from:(self module , ':' , (dir copyTo:idx-1)) |
9668 | 297 |
|
298 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
299 |
(PackageId from:'stx:libbasic') parentPackage |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
300 |
(PackageId from:'stx:goodies/xml/stx') parentPackage |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
301 |
(PackageId from:'stx:goodies/xml/stx') parentPackage parentPackage |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
302 |
(PackageId from:'stx:goodies/xml/stx') parentPackage parentPackage parentPackage |
9668 | 303 |
" |
304 |
||
305 |
"Created: / 23-08-2006 / 15:10:13 / cg" |
|
12185 | 306 |
! |
307 |
||
308 |
pathRelativeToTopDirectory |
|
14249
e071c4ff23ae
changed: #pathRelativeToTopDirectory
Claus Gittinger <cg@exept.de>
parents:
13714
diff
changeset
|
309 |
^ (self module asFilename construct:(self directory)) name. |
12185 | 310 |
|
311 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
312 |
'stx:libbasic' asPackageId pathRelativeToTopDirectory |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
313 |
'stx:goodies/net/ssl' asPackageId pathRelativeToTopDirectory |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
314 |
'bosch:dapasx' asPackageId pathRelativeToTopDirectory |
12185 | 315 |
" |
14249
e071c4ff23ae
changed: #pathRelativeToTopDirectory
Claus Gittinger <cg@exept.de>
parents:
13714
diff
changeset
|
316 |
|
e071c4ff23ae
changed: #pathRelativeToTopDirectory
Claus Gittinger <cg@exept.de>
parents:
13714
diff
changeset
|
317 |
"Modified: / 25-07-2012 / 23:02:40 / cg" |
12185 | 318 |
! |
319 |
||
320 |
pathRelativeToTopDirectory:aDirectory |
|
321 |
^ aDirectory asFilename construct:(self pathRelativeToTopDirectory) |
|
322 |
||
323 |
" |
|
324 |
|top| |
|
325 |
||
326 |
top := Smalltalk packagePath first. |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
327 |
'stx:goodies/net/ssl' asPackageId pathRelativeToTopDirectory:top |
12185 | 328 |
" |
12199 | 329 |
! |
330 |
||
331 |
projectDefinitionClass |
|
332 |
^ ProjectDefinition definitionClassForPackage:self |
|
333 |
||
334 |
" |
|
335 |
'stx:libbasic' asPackageId projectDefinitionClass |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
336 |
'exept/expecco/foo' asPackageId projectDefinitionClass |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
337 |
'exept/expecco/plugin/manualTest' asPackageId projectDefinitionClass |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
338 |
'exept:expecco/plugin/manualTest' asPackageId projectDefinitionClass |
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
339 |
'exept_expecco_plugin_manualTest' asPackageId projectDefinitionClass |
12199 | 340 |
" |
13714 | 341 |
! |
342 |
||
343 |
projectDirectory |
|
16497 | 344 |
"/ replace by: |
345 |
^ self packageDirectory. |
|
14594 | 346 |
|
16497 | 347 |
"/ which works always. |
348 |
"/ the one below only works if a projDefClss is present... |
|
349 |
"/ |pdClass| |
|
350 |
"/ |
|
351 |
"/ (pdClass := self projectDefinitionClass) isNil ifTrue:[^ nil]. |
|
352 |
"/ ^ pdClass projectDirectory |
|
13714 | 353 |
|
354 |
" |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
355 |
'stx:libbasic2' asPackageId projectDirectory |
13714 | 356 |
" |
357 |
||
358 |
"Created: / 21-09-2011 / 18:21:32 / cg" |
|
9577 | 359 |
! ! |
360 |
||
9571 | 361 |
!PackageId class methodsFor:'documentation'! |
362 |
||
363 |
version |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
364 |
^ '$Header: /cvs/stx/stx/libbasic/PackageId.st,v 1.25 2014-12-19 23:29:21 vrany Exp $' |
12185 | 365 |
! |
366 |
||
367 |
version_CVS |
|
17235
6b5be0a1dcb9
Reverted PackageId>>parentPackage to it's 1.23 version to avoid endless loops in browser.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17234
diff
changeset
|
368 |
^ '$Header: /cvs/stx/stx/libbasic/PackageId.st,v 1.25 2014-12-19 23:29:21 vrany Exp $' |
9571 | 369 |
! ! |
15373 | 370 |