N1 Service Provisioning System - Installing components using auto-generated plans from Jython CL
Hi All,
for specific reasons, we want to install a set of components with fixed signatures from Jython CLI, butwithout appropriate plans. In fact, we want to simulate the behavior that we know from Plugin UI, i.e. linking directly to an installer of a component.
We figured the following steps are necessary within CLI code:
1) For the targeted component generate an appropriate install plan using 'pdb.p.genplan' command. This unfortunately does not create the plan within the system, but rather has to be redirected to a file.
2) Import the previously generated plan using 'pdb.p.ci' command from this file.
3) run the plan using fixed signature to install component
4) eventually remove the plan.
Now, the problem is, that step 1) generates a plan targeted for the folder '/system/autogen', but step 2) fails on importing the plan there, because the folder is owned by the system plugin. So we would end up parsing the XML file, replacing path and so on .... We definately don't want to reinvent the wheel, here.
Any help appreciated!!!
Regards,
Frank

