379
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
370
|
3 |
"{ Package: 'stx:goodies/builder/quickSelfTest' }"
|
|
4 |
|
|
5 |
"{ NameSpace: Smalltalk }"
|
|
6 |
|
|
7 |
ApplicationDefinition subclass:#stx_goodies_builder_quickSelfTest
|
|
8 |
instanceVariableNames:''
|
|
9 |
classVariableNames:''
|
|
10 |
poolDictionaries:''
|
|
11 |
category:'* Projects & Packages *'
|
|
12 |
!
|
|
13 |
|
|
14 |
|
|
15 |
!stx_goodies_builder_quickSelfTest class methodsFor:'description'!
|
|
16 |
|
|
17 |
applicationIconFileName
|
|
18 |
^ nil
|
|
19 |
!
|
|
20 |
|
|
21 |
excludedFromPreRequisites
|
|
22 |
"obsolete; temporarily, this is still called for, but will eventually vanish.
|
|
23 |
|
|
24 |
List packages which are to be explicitely excluded from the automatic constructed
|
|
25 |
prerequisites lists (both).
|
|
26 |
If empty, everything that is found along the inheritance of any of
|
|
27 |
my classes is considered to be a prerequisite package."
|
|
28 |
|
|
29 |
^ #(
|
|
30 |
)
|
|
31 |
!
|
|
32 |
|
|
33 |
isGUIApplication
|
|
34 |
"return true, if this is a GUI application.
|
|
35 |
(these need more libraries and use a different startup procedure)"
|
|
36 |
|
|
37 |
^ false
|
|
38 |
!
|
|
39 |
|
|
40 |
mandatoryPreRequisites
|
|
41 |
"list packages which are mandatory as a prerequisite.
|
|
42 |
This are packages containing superclasses of my classes and classes which
|
|
43 |
are extended by myself.
|
|
44 |
They are mandatory, because we need these packages as a prerequisite for loading and compiling.
|
|
45 |
This method is generated automatically,
|
|
46 |
by searching along the inheritance chain of all of my classes.
|
|
47 |
Please take a look at the #referencedPreRequisites method as well."
|
|
48 |
|
|
49 |
^ #(
|
|
50 |
#'stx:libbasic' "ApplicationDefinition - superclass of stx_goodies_builder_quickSelfTest"
|
|
51 |
)
|
|
52 |
!
|
|
53 |
|
|
54 |
referencedPreRequisites
|
|
55 |
"list packages which are a prerequisite, because they contain
|
|
56 |
classes which are referenced by my classes.
|
|
57 |
These packages are NOT needed as a prerequisite for compiling or loading,
|
|
58 |
however, a class from it may be referenced during execution and having it
|
|
59 |
unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
|
|
60 |
includes explicit checks for the package being present.
|
|
61 |
This method is generated automatically,
|
|
62 |
by searching all classes (and their packages) which are referenced by my classes.
|
|
63 |
Please also take a look at the #mandatoryPreRequisites method"
|
|
64 |
|
|
65 |
^ #(
|
|
66 |
#'stx:goodies/sunit' "TestResultReporter - referenced by RunUnitTests class>>run"
|
|
67 |
#'stx:libcomp' "ParserFlags - referenced by RunUnitTests class>>run"
|
|
68 |
)
|
|
69 |
!
|
|
70 |
|
|
71 |
subProjects
|
|
72 |
"list packages which are known as subprojects.
|
|
73 |
This method is generated automatically; however, when generating automatically,
|
|
74 |
packages are only added - never removed, unless listed in #excludedFromSubProjects."
|
|
75 |
|
|
76 |
^ #(
|
|
77 |
)
|
|
78 |
! !
|
|
79 |
|
|
80 |
!stx_goodies_builder_quickSelfTest class methodsFor:'description - contents'!
|
|
81 |
|
|
82 |
classNamesAndAttributes
|
|
83 |
"lists the classes which are to be included in the project.
|
|
84 |
Each entry in the list may be: a single class-name (symbol),
|
|
85 |
or an array-literal consisting of class name and attributes.
|
|
86 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..."
|
|
87 |
|
|
88 |
^ #(
|
|
89 |
"<className> or (<className> attributes...) in load order"
|
|
90 |
RunUnitTests
|
|
91 |
RunUnitTestsStart
|
|
92 |
#'stx_goodies_builder_quickSelfTest'
|
|
93 |
)
|
|
94 |
!
|
|
95 |
|
|
96 |
extensionMethodNames
|
|
97 |
"lists the extension methods which are to be included in the project.
|
|
98 |
Entries are 2-element array literals, consisting of class-name and selector.
|
|
99 |
A correponding method with real names must be present in my concrete subclasses
|
|
100 |
if it has extensions."
|
|
101 |
|
|
102 |
^ #(
|
|
103 |
)
|
|
104 |
! !
|
|
105 |
|
|
106 |
!stx_goodies_builder_quickSelfTest class methodsFor:'description - project information'!
|
|
107 |
|
|
108 |
companyName
|
|
109 |
"Returns a company string which will appear in <lib>.rc.
|
|
110 |
Under win32, this is placed into the dll's file-info.
|
|
111 |
Other systems may put it elsewhere, or ignore it."
|
|
112 |
|
|
113 |
^ 'Claus Gittinger & eXept Software AG'
|
|
114 |
!
|
|
115 |
|
|
116 |
description
|
|
117 |
"Returns a description string which will appear in nt.def / bc.def"
|
|
118 |
|
|
119 |
^ 'Smalltalk/X Application'
|
|
120 |
!
|
|
121 |
|
|
122 |
legalCopyright
|
|
123 |
"Returns a copyright string which will appear in <lib>.rc.
|
|
124 |
Under win32, this is placed into the dll's file-info.
|
|
125 |
Other systems may put it elsewhere, or ignore it."
|
|
126 |
|
|
127 |
^ 'Copyright Claus Gittinger 2017\nCopyright eXept Software AG 2017'
|
|
128 |
!
|
|
129 |
|
|
130 |
productInstallDirBaseName
|
|
131 |
"Returns a default installDir which will appear in <app>.nsi.
|
|
132 |
This is usually not the one you want to keep"
|
|
133 |
|
|
134 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
|
|
135 |
!
|
|
136 |
|
|
137 |
productName
|
|
138 |
" we get this error, if the concrete class has not yet redefined"
|
|
139 |
|
|
140 |
^ 'Smalltalk/X'
|
|
141 |
! !
|
|
142 |
|
|
143 |
!stx_goodies_builder_quickSelfTest class methodsFor:'description - startup'!
|
|
144 |
|
|
145 |
startupClassName
|
|
146 |
"the name of the class which starts the show in its <startupSelector> method.
|
|
147 |
Usually, the name of a subclass of StandAloneStartup."
|
|
148 |
|
|
149 |
^ 'RunUnitTestsStart'
|
|
150 |
!
|
|
151 |
|
|
152 |
startupSelector
|
|
153 |
"the message that is sent to the startupClass to start the show"
|
|
154 |
|
|
155 |
^ #'start'
|
|
156 |
! !
|
|
157 |
|
|
158 |
!stx_goodies_builder_quickSelfTest class methodsFor:'documentation'!
|
|
159 |
|
|
160 |
version
|
|
161 |
^ '$Header$'
|
|
162 |
!
|
|
163 |
|
|
164 |
version_CVS
|
|
165 |
^ '$Header$'
|
|
166 |
! !
|
|
167 |
|