1. Aleš Vojáček
  2. PowerBuilder
  3. Saturday, 28 August 2021 19:01 PM UTC

Hi all,

I'm using orca script as part of automated build (PB2019R3) as SC i'm using Github so I have ws_objects directory which contains subdir for each pbl and inside that subdir there are files for each object in pbl.

 

orca script :

start session
set debug true
scc set connect property localprojpath ".\"
scc set connect property logfile "createpbls.log"
scc set connect property deletetempfiles "true"
scc connect offline
scc set target "genetika.pbt" "refresh_all importonly"
scc refresh target incremental
scc refresh target "3pass"
scc refresh target full
scc close
end session

 

It seemed that all works perfect, but if I have same object name in different pbls then it ends with errors.

After while I realize that orca will generate pbr files in root directory and then files for all objects in pbl into root dir of project. So then I realize, that if i have object with same name in different pbl it gets overwritten and then it ends with errors.

I hoped that oraca with ws_objects dir does not generate pbr files and uses files from ws_object to regenerate pbls.

part of log of orca script running: 

Appeon (R) OrcaScript interpreter version 19.2
Using ANSI source file build.orca.
Start Session
set debug "true"
scc set connect property localprojpath ".\"
scc set connect property logfile "createpbls.log"
scc set connect property deletetempfiles "true"
scc connect offline
Mapped the source files in ws_objects to the workspace path successfully.
scc set target "genetika.pbt" "REFRESH_ALL | IMPORTONLY"

 

It seems, that mapping to ws_objects dirs is ok, so why orca generates pbrs and all object files in root dir of projects? It get deleted after script ends ?

 

Thank you 

Roland Smith Accepted Answer Pending Moderation
  1. Monday, 30 August 2021 19:34 PM UTC
  2. PowerBuilder
  3. # 1

My install of 2021 doesn't have the AutoCompiler folder with the installer for PBC (PowerBuilder Compiler). Has that been discontinued?

Comment
  1. Armeen Mazda @Appeon
  2. Monday, 30 August 2021 19:46 PM UTC
PBC is going to be replaced by PBAutoBuild, but our plan is to make it an "obsolete" rather than "discontinued" feature. That means we won't be supporting or enhancing it but we don't delete it from the product and you are still permitted to use it. So long story short, the PBC should still be there. On my install, I see it located in C:\Program Files (x86)\Appeon\PowerBuilderCompiler 21.0\pbc210.exe
  1. Helpful 1
  1. Roland Smith
  2. Monday, 30 August 2021 19:58 PM UTC
I see it. I now is fully installed. Thanks.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Monday, 30 August 2021 20:59 PM UTC
You're very welcome!
  1. Helpful
There are no comments made yet.
Aleš Vojáček Accepted Answer Pending Moderation
  1. Monday, 30 August 2021 11:06 AM UTC
  2. PowerBuilder
  3. # 2

Hi,

thank you for suggestions.

I still do not get why it creates all those files in root dir of project when those files exists in ws_objects dir (and there are subdirs for each pbl). I do orca srcipt for pbt which does not contain some pbl (in this pbl are different versions of some objects) and still orca generates files from not used pbl.

I will take a look on PBAutoBuild feature, if that is usable on BuildServer without need installed Licence it could be a solution.

Than you.

Ales

Comment
  1. Armeen Mazda @Appeon
  2. Monday, 30 August 2021 16:33 PM UTC
Yes, PBAutoBuild is meant to be used on build server and does not need license activation. But please note that it is only compatible with PowerBuilder 2021 and newer.
  1. Helpful 1
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Monday, 30 August 2021 10:18 AM UTC
  2. PowerBuilder
  3. # 3

Hi Aleš,

ORCA is a legacy feature on PowerBuilder. It does have some defact in its design. In other words, when you have multiple PBLs with the same-named objects, it will have this conflict.

Currently, I suggest that you work it around using the following method:
Say you have test1.pbl and test2.pbl contain the same-named objects. You need to put test1.pbl and test2.pbl in different sub-folder, such as
AppFolder\sub1\test1.pbl
AppFolder\sub2\test2.pbl

BTW, PB 2021 has a new feature PBAutoBuild. In comparison to ORCA, it is much easy to use and comes with more powerful build functions. And it doesn’t have this bug. I suggest that you check out this link:
https://docs.appeon.com/pb2021/pbug/ch07s03.html#Tutorial_Building_your_Application_project_with_commands 

Regards,
Ken

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.