[PB2017 R3]
Hi all,
I built an external tool to generate some PB Objects based on a simple XML specification.
My tool generates several source files (.sru, .srf and similar) ready to be imported into existing PBLs. I would like not to import them manually inside the IDE, but to build a batch file, say pbimport, and call it via command-line like:
pbimport n_myobject.sru library.pbl
so that n_myobject gets imported into library.pbl.
Is it possible/easy? I know there's OrcaScript for such operations, but I didn't find any straightforward command... seems I have to go through .pbg files and some sort of SCC commands even if my project isn't under Source Control but I couldn't find any example.
Any suggestions?
Thank you so much,
Luca
PS. I have bought Roland's pborcapi which could help me to do that, but I'd like to build an open source project with this generators so I'd prefer a "native" PB solution, if any.
I used the last compiled version on Google Code, pborca_1.00.17.zip, and it works perfectly with PB2017 R3.
I just built a simple test.orc file like this (using a real application with 208 PBLs in the library list):
session begin pborc170.dll
set liblist begin
C:\pbapps\scorte\arca\ACMREG.PBL
C:\pbapps\scorte\arca\ACCOMU.PBL
C:\pbapps\scorte\arca\ACDDDW.PBL
C:\pbapps\scorte\arca\ACDDWI.PBL
C:\pbapps\scorte\arca\ACFUNQ.PBL
...
...
C:\pbapps\scorte\stnd\Y4LTHE.PBL
C:\pbapps\scorte\stnd\Y4LTST.PBL
C:\pbapps\scorte\stnd\Y4LVIS.PBL
C:\pbapps\scorte\pbdom170.pbd
C:\pbapps\scorte\pbsoapclient170.pbd
set liblist end
set application c:\pbapps\scorte\maga\maga.pbl, maga
import c:\tmp\work\n_convert_mmv.sru, c:\pbapps\scorte\maga\mgcomu.pbl
session end
Then I ran pborca test.orc and it imported my userobject without any issue!
Thanks again,
Luca
session begin pborc170.dll
target set liblist %%TARGET%%
target set app %%TARGET%%
import %%SOURCEFILE%% , %%LIBRARY%%
session end
Thank you so much
Luca