1573
|
1 |
"{ Package: 'stx:libjava/examples' }"
|
|
2 |
|
|
3 |
LibraryDefinition subclass:#stx_libjava_examples
|
|
4 |
instanceVariableNames:''
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'* Projects & Packages *'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!stx_libjava_examples 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 |
^ #(
|
|
30 |
#'stx:libbasic' "Object - superclass of HelloWorldExampleS "
|
|
31 |
#'stx:libjava' "JavaLookup - referenced by JavaExamples::CDDatabaseHandler class>>initialize "
|
|
32 |
)
|
|
33 |
! !
|
|
34 |
|
|
35 |
!stx_libjava_examples class methodsFor:'description - contents'!
|
|
36 |
|
|
37 |
classNamesAndAttributes
|
|
38 |
"lists the classes which are to be included in the project.
|
|
39 |
Each entry in the list may be: a single class-name (symbol),
|
|
40 |
or an array-literal consisting of class name and attributes.
|
|
41 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..."
|
|
42 |
|
|
43 |
^ #(
|
|
44 |
"<className> or (<className> attributes...) in load order"
|
|
45 |
(JavaExamples autoload)
|
|
46 |
#'stx_libjava_examples'
|
1574
|
47 |
(HelloWorldExampleS autoload)
|
1628
|
48 |
(CDDatabaseHandler2 autoload)
|
|
49 |
(CDDatabaseHandler1 autoload)
|
1636
|
50 |
(STComparator autoload)
|
1573
|
51 |
)
|
|
52 |
!
|
|
53 |
|
|
54 |
extensionMethodNames
|
|
55 |
"lists the extension methods which are to be included in the project.
|
|
56 |
Entries are 2-element array literals, consisting of class-name and selector."
|
|
57 |
|
|
58 |
^ #(
|
|
59 |
)
|
|
60 |
! !
|
|
61 |
|
1718
|
62 |
!stx_libjava_examples class methodsFor:'description - java'!
|
|
63 |
|
|
64 |
javaClassPath
|
|
65 |
|
|
66 |
<javaclasspath>
|
|
67 |
|
|
68 |
|
|
69 |
^{
|
|
70 |
self packageDirectory / 'java' / 'bin' .
|
|
71 |
self packageDirectory / 'java' / 'libs' / '*.jar'
|
|
72 |
}
|
|
73 |
|
|
74 |
"Created: / 17-11-2011 / 23:00:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
75 |
"Modified (format): / 14-10-2012 / 22:16:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
76 |
!
|
|
77 |
|
|
78 |
javaSourcePath
|
|
79 |
|
|
80 |
<javasourcepath>
|
|
81 |
|
|
82 |
^{
|
|
83 |
self packageDirectory / 'java' / 'src' .
|
|
84 |
self packageDirectory / 'java' / 'libs-src' / '*.jar' .
|
|
85 |
}
|
|
86 |
|
|
87 |
"Created: / 17-11-2011 / 23:01:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
88 |
! !
|
|
89 |
|
1573
|
90 |
!stx_libjava_examples class methodsFor:'description - project information'!
|
|
91 |
|
|
92 |
applicationIconFileName
|
|
93 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
|
|
94 |
|
|
95 |
^ nil
|
|
96 |
"/ ^ self applicationName
|
|
97 |
!
|
|
98 |
|
|
99 |
companyName
|
|
100 |
"Return a companyname which will appear in <lib>.rc"
|
|
101 |
|
|
102 |
^ 'eXept Software AG'
|
|
103 |
!
|
|
104 |
|
|
105 |
description
|
|
106 |
"Return a description string which will appear in vc.def / bc.def"
|
|
107 |
|
|
108 |
^ 'Smalltalk/X Class library'
|
|
109 |
!
|
|
110 |
|
|
111 |
legalCopyright
|
|
112 |
"Return a copyright string which will appear in <lib>.rc"
|
|
113 |
|
|
114 |
^ 'Copyright Claus Gittinger 1988-2012\nCopyright eXept Software AG 1998-2012'
|
|
115 |
!
|
|
116 |
|
|
117 |
productInstallDirBaseName
|
|
118 |
"Returns a default installDir which will appear in <app>.nsi.
|
|
119 |
This is usually not the one you want to keep"
|
|
120 |
|
|
121 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
|
|
122 |
!
|
|
123 |
|
|
124 |
productName
|
|
125 |
"Return a product name which will appear in <lib>.rc"
|
|
126 |
|
|
127 |
^ 'Smalltalk/X'
|
|
128 |
! !
|
|
129 |
|
|
130 |
!stx_libjava_examples class methodsFor:'description - svn'!
|
|
131 |
|
|
132 |
svnRepositoryUrlString
|
|
133 |
"Return a SVN repository URL of myself.
|
|
134 |
(Generated since 2011-04-08)
|
|
135 |
Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!!
|
|
136 |
"
|
|
137 |
|
|
138 |
^ '$URL:: $'
|
|
139 |
!
|
|
140 |
|
|
141 |
svnRevisionNr
|
|
142 |
"Return a SVN revision number of myself.
|
|
143 |
This number is updated after a commit"
|
|
144 |
|
|
145 |
^ "$SVN-Revision:"'nil '"$"
|
|
146 |
! !
|
|
147 |
|
|
148 |
!stx_libjava_examples class methodsFor:'documentation'!
|
|
149 |
|
|
150 |
version_SVN
|
|
151 |
^ '$Id:: $'
|
|
152 |
! !
|