1. Vipin Dwivedi
  2. PowerBuilder
  3. Tuesday, 9 October 2018 20:13 PM UTC

Hello Appeon Team,

We are currently on PB2017R3 with Git as source control. 2017R3 does not update PBG file, if you add or delete any object in PowerBuilder IDE which I have verified it. I also heard that Orca Script no longer look for PBG file for compiling in 2017R3. With this statement, I tried to run the orca command to refresh the pbls but it is still looking for PBG files. Since there is a bug in PB2017 where it converts PBG files to UTF, we receive "Unable to process map from PBG file".To make it work, I manually have to change the file type of all PBG files to ANSI and then it works. My question is

Why orcascr170 is still looking for PBG file?

When they are going to resolve this bug which changes the PBG file type to UTF?

Below is my orca file with commands

start session
set debug true
scc set connect property logfile "createpbls.log"
scc set connect property localprojpath "pb-equip"
scc connect offline
scc set target "pb-equip\units.pbt" "importonly outofdate"
;scc refresh target incremental
scc refresh target 3pass
scc close
end session

 

Please answer and help me.

Accepted Answer
Tom Jiang @Appeon Accepted Answer Pending Moderation
  1. Thursday, 11 October 2018 03:18 AM UTC
  2. PowerBuilder
  3. # Permalink

With PB 2017 R3, it doesn’t rely on the local pbg files for ORCA to importing PBLs from Git. Instead, when you run ORCA it will create the pbg files based on the file list inside ws_objects folder before importing source code into the PBLs. Therefore, you need to make sure that the scc set connect property localprojpath command is pointing to the parent folder for the ws_objects folder.

If the PBT includes pbd files, you will need to use the command like scc exclude liblist ".\pbsoapclient170.pbd" to exclude them. Otherwise, you will get an error for missing pbg files for the pbd files.

The following is a complete OrcaScript example (there is one pbl file and one pbd file in the PBT):

start session

set debug true

scc set connect property localprojpath "c:\project\"

;localprojpath must point to the parent directory of ws_objects folder

scc set connect property logfile "CreatePBLs.log"

scc connect offline

scc set target "test08.pbt" "refresh_all importonly"

scc exclude liblist "c:\project\pbsoapclient170.pbd"

scc refresh target 3pass

build library "test08.pbl" "" pbd

build executable "test.exe" "" "" "yn"

scc close

end session

 

Please send us the log files if you still get an issue using this function.

BTW, please make sure you are using the OrcaScr170.exe from PB 2017 R3 for this process.

 

Regards,

 

Tom Jiang

Comment
  1. Vipin Dwivedi
  2. Thursday, 11 October 2018 03:47 AM UTC
Thanks Tom
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 October 2018 20:20 PM UTC
  2. PowerBuilder
  3. # 1

Orcascr170 still uses PBG if you are connecting to a source control system using the MSSCCI interface.

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 9 October 2018 21:37 PM UTC
What source control system are you using?
  1. Helpful
  1. Vipin Dwivedi
  2. Tuesday, 9 October 2018 21:54 PM UTC
I am using Git source control system. Here what we have been doing in PB2017R2.

We are using Jenkin Build for creating PBD and EXE.

1 - Get latest version from Jenkin with setup of Git repository.

2 - Running Orca Script to import PBLs. This we are doing in offline mode as Git is retrieving latest code (through Jenkin)

3 - Running PBC170.exe (Appeon Auto compiler) to build EXE/PBD from PBLs.



Let me know if you need any further details.

Regards,

Vipin
  1. Helpful
  1. Vipin Dwivedi
  2. Wednesday, 10 October 2018 21:13 PM UTC
Can someone please guide me on this?
  1. Helpful
There are no comments made yet.
Vipin Dwivedi Accepted Answer Pending Moderation
  1. Thursday, 11 October 2018 03:47 AM UTC
  2. PowerBuilder
  3. # 2

Thanks Tom, Though I am running the same kind of script but will double check and will give a try. I will let you know how did it go.

Thanks for your reply BTW.

Vipin

Comment
There are no comments made yet.
Vipin Dwivedi Accepted Answer Pending Moderation
  1. Thursday, 11 October 2018 21:46 PM UTC
  2. PowerBuilder
  3. # 3

Thanks Tom, It is working now.

Vipin

Comment
There are no comments made yet.
Glenn Benscoter Accepted Answer Pending Moderation
  1. Monday, 27 September 2021 18:46 PM UTC
  2. PowerBuilder
  3. # 4

Will this work with in a GITLab (self- managed) on Linux with a Windows Runner?

 

Thanks

Glenn Benscoter

Comment
  1. Armeen Mazda @Appeon
  2. Monday, 27 September 2021 19:18 PM UTC
It should
  1. Helpful
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.