@@ -195,6 +195,40 @@ ClassMethod gln() [ CodeMode = expression, Private ]
195
195
" ^" _$classname ()
196
196
}
197
197
198
+
199
+
200
+ ClassMethod init ()
201
+ {
202
+ #define confile " /cos.json"
203
+ set stream =##class (%Stream.FileCharacter ).%New ()
204
+ set sc =stream .LinkToFile (..workdir ()_$$$confile)
205
+ s conf ={}.%FromJSON (stream .Read ($$$MaxCacheInt))
206
+ s gln =..gln ()
207
+ s @gln @(" compileList" )=conf .compileList
208
+ s @gln @(" projectName" )=conf .projectName
209
+ w " compileList=" _conf .compileList ,!
210
+ w " projectName=" _conf .projectName
211
+ }
212
+
213
+ /// export release file for list and project settings
214
+ ClassMethod release () {
215
+ s gln =..gln ()
216
+ s list =$G (@gln @(" compileList" ))
217
+ if list =" " w " Nothing to release. Run init method first" quit
218
+
219
+ s release =$G (@gln @(" projectName" )," release" )
220
+ s release =release _$p ($zdt ($h ,8 )," " )_$tr ($p ($p ($zdt ($h )," " ,2 )," :" ,1 ,2 )," :" )_" .xml"
221
+ D $System .OBJ .Export (list ,release )
222
+ w " All objects with mask " _list _" has been exported to " _release
223
+ }
224
+
225
+ ClassMethod compile () {
226
+ s gln =..gln ()
227
+ s list =$G (@gln @(" compileList" ))
228
+ if list =" " w " Nothing to compile. Run init method first" quit
229
+ d $System .OBJ .compile (list )
230
+ }
231
+
198
232
/// test.dfi -> /dfi/test.dfi
199
233
/// test.cls -> /cls/test.cls
200
234
/// testpkg.test.cls -> /cls/testpkg/test.cls
@@ -320,5 +354,6 @@ ClassMethod codets(codename, ext)
320
354
Q $p ( ts , " ." ) ;remove ms
321
355
}
322
356
357
+
323
358
}
324
359
0 commit comments