author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 18 Sep 2012 13:49:14 +0000 | |
changeset 20 | cdf3ee8ceeaa |
parent 15 | 31a33727c629 |
child 22 | 9086d6f7096a |
permissions | -rw-r--r-- |
1 | 1 |
"{ Package: 'stx:goodies/cypress' }" |
2 |
||
3 |
LibraryDefinition subclass:#stx_goodies_cypress |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'* Projects & Packages *' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!stx_goodies_cypress class methodsFor:'description'! |
|
12 |
||
13 |
excludedFromPreRequisites |
|
14 |
"list all packages which should be ignored in the automatic |
|
15 |
preRequisites scan. See #preRequisites for more." |
|
16 |
||
17 |
^ #( |
|
18 |
) |
|
19 |
! |
|
20 |
||
21 |
preRequisites |
|
22 |
"list all required packages. |
|
23 |
This list can be maintained manually or (better) generated and |
|
24 |
updated by scanning the superclass hierarchies and looking for |
|
25 |
global variable accesses. (the browser has a menu function for that) |
|
26 |
Howevery, often too much is found, and you may want to explicitely |
|
27 |
exclude individual packages in the #excludedFromPrerequisites method." |
|
28 |
||
29 |
^ #( |
|
11
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
30 |
#'exept:expecco' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
31 |
#'exept:expecco/manifestApi' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
32 |
#'exept:expecco/reportGenerator' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
33 |
#'exept:httpPortal/widgets' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
34 |
#'exept:libcrypt' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
35 |
#'exept:osi/asn1' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
36 |
#'exept:workflow' |
1 | 37 |
#'stx:goodies/monticello' |
11
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
38 |
#'stx:goodies/simpleServices' |
15
31a33727c629
- Getting rid of old Cypress implementation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
39 |
#'stx:goodies/sunit' |
11
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
40 |
#'stx:goodies/webServer' |
15
31a33727c629
- Getting rid of old Cypress implementation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
41 |
#'stx:libbasic' "Object - superclass of CypressJSONReader " |
1 | 42 |
#'stx:libbasic2' |
15
31a33727c629
- Getting rid of old Cypress implementation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
43 |
#'stx:libbasic3' |
31a33727c629
- Getting rid of old Cypress implementation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
44 |
#'stx:libcomp' |
1 | 45 |
#'stx:libcompat' |
11
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
46 |
#'stx:libdb/libodbc' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
47 |
#'stx:libdb/libsqlite' |
1 | 48 |
#'stx:libhtml' |
11
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
49 |
#'stx:libtool' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
50 |
#'stx:libtool2' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
51 |
#'stx:libview' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
52 |
#'stx:libview2' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
53 |
#'stx:libwidg' |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
54 |
#'stx:libwidg2' |
1 | 55 |
) |
56 |
! ! |
|
57 |
||
58 |
!stx_goodies_cypress class methodsFor:'description - contents'! |
|
59 |
||
60 |
classNamesAndAttributes |
|
61 |
"lists the classes which are to be included in the project. |
|
62 |
Each entry in the list may be: a single class-name (symbol), |
|
63 |
or an array-literal consisting of class name and attributes. |
|
64 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
65 |
||
66 |
^ #( |
|
67 |
"<className> or (<className> attributes...) in load order" |
|
68 |
#'stx_goodies_cypress' |
|
15
31a33727c629
- Getting rid of old Cypress implementation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
69 |
CypressAbstractReaderWriter |
11
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
70 |
CypressModel |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
71 |
CypressClass |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
72 |
CypressMethod |
333528cd629a
- Cypress refactoring - towards a lot simpler code
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
10
diff
changeset
|
73 |
CypressPackage |
13 | 74 |
CypressRepository |
14 | 75 |
CypressAbstractWriter |
76 |
CypressWriter |
|
15
31a33727c629
- Getting rid of old Cypress implementation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
77 |
CypressJSONReader |
31a33727c629
- Getting rid of old Cypress implementation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
78 |
CypressAbstractReader |
31a33727c629
- Getting rid of old Cypress implementation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
79 |
CypressFileTreeReader |
31a33727c629
- Getting rid of old Cypress implementation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
80 |
CypressReader |
1 | 81 |
) |
82 |
! |
|
83 |
||
84 |
extensionMethodNames |
|
85 |
"lists the extension methods which are to be included in the project. |
|
86 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
87 |
||
88 |
^ #( |
|
89 |
CharacterArray withLineEndings: |
|
90 |
'CharacterArray class' lfString |
|
2 | 91 |
Array asCypressPropertyObject |
92 |
Array writeCypressJsonOn:forHtml:indent: |
|
93 |
Boolean writeCypressJsonOn:forHtml:indent: |
|
94 |
Character isSafeForHTTP |
|
95 |
Class asCypressClassDefinition |
|
96 |
Dictionary asCypressPropertyObject |
|
97 |
Dictionary writeCypressJsonOn:forHtml:indent: |
|
98 |
Number writeCypressJsonOn:forHtml:indent: |
|
99 |
Object asCypressPropertyObject |
|
100 |
String asCypressPropertyObject |
|
101 |
String encodeForHTTP |
|
102 |
String writeCypressJsonOn:forHtml:indent: |
|
3 | 103 |
Method asCypressMethodDefinition |
10 | 104 |
'ConfigurableFeatures class' hasCypress |
13 | 105 |
PackageId asCypressPackage |
106 |
Symbol asCypressPackage |
|
107 |
'ProjectDefinition class' asCypressPackage |
|
1 | 108 |
) |
109 |
! ! |
|
110 |
||
111 |
!stx_goodies_cypress class methodsFor:'description - project information'! |
|
112 |
||
113 |
applicationIconFileName |
|
114 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
115 |
||
116 |
^ nil |
|
117 |
"/ ^ self applicationName |
|
118 |
! |
|
119 |
||
120 |
companyName |
|
121 |
"Return a companyname which will appear in <lib>.rc" |
|
122 |
||
12
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
123 |
^ 'Jan Vrany' |
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
124 |
|
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
125 |
"Modified: / 11-09-2012 / 11:54:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1 | 126 |
! |
127 |
||
128 |
description |
|
129 |
"Return a description string which will appear in vc.def / bc.def" |
|
130 |
||
12
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
131 |
^ 'Cypress Package Format Reader/Writer' |
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
132 |
|
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
133 |
"Modified: / 11-09-2012 / 11:54:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1 | 134 |
! |
135 |
||
136 |
legalCopyright |
|
137 |
"Return a copyright string which will appear in <lib>.rc" |
|
138 |
||
12
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
139 |
^ 'Copyright Jan Vrany & Dale Henrichs 2012' |
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
140 |
|
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
141 |
"Modified: / 11-09-2012 / 11:54:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1 | 142 |
! |
143 |
||
144 |
productInstallDirBaseName |
|
145 |
"Returns a default installDir which will appear in <app>.nsi. |
|
146 |
This is usually not the one you want to keep" |
|
147 |
||
148 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last |
|
149 |
! |
|
150 |
||
151 |
productName |
|
152 |
"Return a product name which will appear in <lib>.rc" |
|
153 |
||
12
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
154 |
^ 'Cypress' |
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
155 |
|
ec118792047a
- Package writing rewritten to use new model. Writes package according to recent spec.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11
diff
changeset
|
156 |
"Modified: / 11-09-2012 / 11:55:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1 | 157 |
! ! |
158 |
||
159 |
!stx_goodies_cypress class methodsFor:'description - svn'! |
|
160 |
||
161 |
svnRepositoryUrlString |
|
162 |
"Return a SVN repository URL of myself. |
|
163 |
(Generated since 2011-04-08) |
|
164 |
Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!! |
|
165 |
" |
|
166 |
||
167 |
^ '$URL:: $' |
|
168 |
! |
|
169 |
||
170 |
svnRevisionNr |
|
171 |
"Return a SVN revision number of myself. |
|
172 |
This number is updated after a commit" |
|
173 |
||
20 | 174 |
^ "$SVN-Revision:"'18 '"$" |
1 | 175 |
! ! |
176 |
||
177 |
!stx_goodies_cypress class methodsFor:'documentation'! |
|
178 |
||
179 |
version_SVN |
|
180 |
^ '$Id:: $' |
|
181 |
! ! |