@@ -195,6 +195,40 @@ ClassMethod gln() [ CodeMode = expression, Private ]
195195" ^" _$classname ()
196196}
197197
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+
198232/// test.dfi -> /dfi/test.dfi
199233/// test.cls -> /cls/test.cls
200234/// testpkg.test.cls -> /cls/testpkg/test.cls
@@ -320,5 +354,6 @@ ClassMethod codets(codename, ext)
320354 Q $p ( ts , " ." ) ;remove ms
321355}
322356
357+
323358}
324359
0 commit comments