author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 05 Feb 2013 23:35:59 +0100 | |
branch | refactoring-vmdata |
changeset 2023 | ce075b5d052f |
parent 1953 | 1e42ad3fc322 |
child 2069 | 75d40b7b986f |
permissions | -rw-r--r-- |
1821 | 1 |
"{ Package: 'stx:libjava/libs' }" |
2 |
||
3 |
LibraryDefinition subclass:#stx_libjava_libs |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'* Projects & Packages *' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!stx_libjava_libs 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 stx_libjava_libs " |
|
31 |
) |
|
32 |
! ! |
|
33 |
||
34 |
!stx_libjava_libs class methodsFor:'description - compilation'! |
|
35 |
||
36 |
additionalRules_bc_dot_mak |
|
37 |
^ ' |
|
1823 | 38 |
mvn: |
1821 | 39 |
pushd java |
40 |
mvn package |
|
41 |
popd |
|
42 |
||
43 |
||
44 |
' |
|
45 |
||
46 |
"Modified: / 15-11-2012 / 23:55:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
47 |
! |
|
48 |
||
49 |
additionalRules_make_dot_proto |
|
50 |
^ ' |
|
1823 | 51 |
mvn: |
1821 | 52 |
(cd java && mvn package) |
53 |
||
54 |
' |
|
55 |
||
56 |
"Modified: / 15-11-2012 / 23:56:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
57 |
! |
|
58 |
||
59 |
additionalTargets_bc_dot_mak |
|
60 |
||
1823 | 61 |
^ 'mvn' |
1821 | 62 |
|
63 |
"Modified: / 15-11-2012 / 23:56:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
64 |
! |
|
65 |
||
66 |
additionalTargets_make_dot_proto |
|
67 |
||
1823 | 68 |
^ 'mvn' |
1821 | 69 |
|
70 |
"Created: / 05-09-2006 / 16:05:12 / cg" |
|
71 |
"Modified: / 15-11-2012 / 23:56:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
72 |
! ! |
|
73 |
||
74 |
!stx_libjava_libs class methodsFor:'description - contents'! |
|
75 |
||
76 |
classNamesAndAttributes |
|
77 |
"lists the classes which are to be included in the project. |
|
78 |
Each entry in the list may be: a single class-name (symbol), |
|
79 |
or an array-literal consisting of class name and attributes. |
|
80 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
81 |
||
82 |
^ #( |
|
83 |
"<className> or (<className> attributes...) in load order" |
|
84 |
#'stx_libjava_libs' |
|
85 |
) |
|
86 |
! |
|
87 |
||
88 |
extensionMethodNames |
|
89 |
"lists the extension methods which are to be included in the project. |
|
90 |
Entries are 2-element array literals, consisting of class-name and selector." |
|
91 |
||
92 |
^ #( |
|
93 |
) |
|
94 |
! ! |
|
95 |
||
96 |
!stx_libjava_libs class methodsFor:'description - java'! |
|
97 |
||
98 |
javaClassPath |
|
99 |
||
100 |
<javaclasspath> |
|
101 |
||
102 |
^{ |
|
103 |
self packageDirectory / 'java' / 'bin' . |
|
104 |
self packageDirectory / 'java' / 'libs' / '*.jar' |
|
105 |
} |
|
106 |
||
107 |
"Created: / 17-11-2011 / 23:00:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
108 |
! |
|
109 |
||
110 |
javaSourcePath |
|
111 |
||
112 |
<javasourcepath> |
|
113 |
||
114 |
^{ |
|
115 |
self packageDirectory / 'java' / 'src' . |
|
116 |
self packageDirectory / 'java' / 'libs-src' / '*.jar' . |
|
117 |
} |
|
118 |
||
119 |
"Created: / 17-11-2011 / 23:01:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
120 |
! ! |
|
121 |
||
122 |
!stx_libjava_libs class methodsFor:'description - project information'! |
|
123 |
||
124 |
applicationIconFileName |
|
125 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
126 |
||
127 |
^ nil |
|
128 |
"/ ^ self applicationName |
|
129 |
! |
|
130 |
||
131 |
companyName |
|
132 |
"Return a companyname which will appear in <lib>.rc" |
|
133 |
||
134 |
^ 'eXept Software AG & SWING Research Group' |
|
135 |
||
136 |
"Modified: / 15-11-2012 / 23:51:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
137 |
! |
|
138 |
||
139 |
description |
|
140 |
"Description string which will appear in vc.def / bc.def" |
|
141 |
||
142 |
^ 'Java support for Smalltalk/X - external java libraries' |
|
143 |
||
144 |
"Modified: / 15-11-2012 / 23:52:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
145 |
! |
|
146 |
||
147 |
legalCopyright |
|
148 |
"Copyright string which will appear in <lib>.rc" |
|
149 |
||
150 |
^ 'Copyright Claus Gittinger 1988-2011\nCopyright eXept Software AG 1998-2011\nCopyright Jan Vrany, Jan Kurs and Marcel Hlopko\n SWING Research Group, Czech Technical University In Prague' |
|
151 |
||
152 |
"Modified: / 15-11-2012 / 23:51:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
153 |
! |
|
154 |
||
155 |
productInstallDirBaseName |
|
156 |
"Returns a default installDir which will appear in <app>.nsi. |
|
157 |
This is usually not the one you want to keep" |
|
158 |
||
159 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last |
|
160 |
! |
|
161 |
||
162 |
productName |
|
163 |
"Return a product name which will appear in <lib>.rc" |
|
164 |
||
165 |
^ 'Smalltalk/X' |
|
166 |
! ! |
|
167 |
||
168 |
!stx_libjava_libs class methodsFor:'description - svn'! |
|
169 |
||
170 |
svnRepositoryUrlString |
|
171 |
"Return a SVN repository URL of myself. |
|
172 |
(Generated since 2011-04-08) |
|
173 |
Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!! |
|
174 |
" |
|
175 |
||
176 |
^ '$URL:: $' |
|
177 |
! |
|
178 |
||
179 |
svnRevisionNr |
|
180 |
"Return a SVN revision number of myself. |
|
181 |
This number is updated after a commit" |
|
182 |
||
183 |
^ "$SVN-Revision:"'nil '"$" |
|
184 |
! ! |
|
185 |
||
186 |
!stx_libjava_libs class methodsFor:'documentation'! |
|
187 |
||
1953
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
188 |
version_HG |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
189 |
|
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
190 |
^ '$Changeset: <not expanded> $' |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
191 |
! |
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
192 |
|
1821 | 193 |
version_SVN |
1953
1e42ad3fc322
Added support Java>>addToClassPath: & Java>>addToSourcePath:. Removed JavaPathElement.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1823
diff
changeset
|
194 |
^ '§Id:: §' |
1821 | 195 |
! ! |