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