Philip Helger
Philip Helger
But it should stay open and end up in the SML configuration
This can be done via the REST API since 5.6.0: `/exchange/export/byowner/{UserId}/xml/v1` See https://github.com/phax/phoss-smp/wiki/REST-API for details
Yes, feel free to submit a PR - the next update will anyway a major version (4) :)
That means a deep-copy of all objects and expressions... That's going to be a big one
Okay, than can we have quick chat on how to do it? I don't like `Object.clone` because you always need to cast. Can you do something with copy constructors? Or...
One thing that strikes me, is that the basic types (like VOID or BOOLEAN) depend on the JCodeModel instance and all usages of those must also be transfered. That means...
Just make them public. Or create factory methods
I though you add a copy-constructor or clone method in every class? Do I get you right - you manually copy the structure from the "outside" of the relevant class?
Ah okay. But isnt't there a certain danger that you forget stuff?
Than maybe for the expression stuff could you go for a solution like this: https://github.com/phax/jcodemodel/commit/ead1645d882ff301a530480c26e1e6d7b2c1348d