very interesting solution
- Log in to post comments
very interesting solution
Thanks, the first option seems to be what I need
Thanks, didn't think about it
Great, this works, thank you
Amir, I have implemented UDL support in CacheGitHubCI. You can check it out.
P.S. udl branch
Just now I realized that dfi files are in XML format even though you export it in UDL. The only difference is that I don't have several tags such as <Export> and <Document> in UDL. So I think better way would be to search for <Export> tag.
Thank you. Didn't think of that
Hi, Amir.
You can take a look on https://github.com/intersystems-ru/cache-source-control and https://github.com/intersystems-ru/CacheUpdater. They both have a basic handling of UDL format.
fileStream is of type %FileCharacterStream and rtn.Code is of type %CharacterStream
This is the code:
// write content to file
set fileStream = ##class(%FileCharacterStream).%New()
set fileStream.Filename = fileLocation
set status = fileStream.CopyFromAndSave(rtn.Code)
Where can find GetInternalName method? My class extends from %SYS.Task.Definition.
And probably the path to the class will be different from the real name of the class. For example, the path is abc/qwe/file.cls but the name of the class is cache.hello.cls
The problem is that $system.OBJ.Load expects a file which is in xml, %ro and cdl formats. I get "Unknown file type" error for udl.
Thanks, %Compiler.UDL.TextServices really helped for class importing/exporting
Thank you, I forgot about that completely