1. Stefan Ziems
  2. PowerBuilder
  3. Friday, 21 September 2018 11:47 AM UTC

Hello,

we're using orca-script to compile our applications. 

How can we use the integrated SVN features of PB2017R3 with orca script? We have to get the latest version from the scc before compiling. We use the shell extension "Tortouise SVN"

I tried a "svn update" in our compiler batch file, but die PBLs aren't up-to-date. 

The objects in "ws_objects" are. 

Can anybody help?

Regars 

Stefan

Tom Jiang @Appeon Accepted Answer Pending Moderation
  1. Friday, 12 October 2018 02:55 AM UTC
  2. PowerBuilder
  3. # 1
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 latest OrcaScr170.exe for this process. Regards, Tom Jiang
Comment
There are no comments made yet.
Stefan Ziems Accepted Answer Pending Moderation
  1. Wednesday, 10 October 2018 09:26 AM UTC
  2. PowerBuilder
  3. # 2

Unfortunately i can't get it to work. 

First of all, PB has not created the *.pbg files that are necessary to import the source files from the "ws_objects" folder into the pbls.

I wrote a little tool, which created the *.pbg files for me.  The logfile created from the refresh.orca doesn't show a error. The change-date of the PBLs in windows explorer updated to current date, but the objects inside the PBLs are still the old ones.

The current new objects are in the folder c:\pb\svntest\ws_objects\svntest_std.pbl.src\*.*

Any Ideas what i might do wrong?

refresh.orca:

start session
set debug true
scc set connect property logfile "createpbls.log"
scc connect offline
scc set target "svntest.pbt" refresh_all importonly
scc refresh target 3pass
scc close
end session

Logfile: 

10.10.2018 11:15 Source Management Initialization...
Local Project Path: c:\pb\svntest
Scc Connect Offline Successful.
PBORCA_SccSetTarget: c:\pb\svntest\svntest.pbt
Target settings: REFRESH ALL | IMPORT ONLY
App Name: svntest App Lib: c:\pb\svntest\svntest.pbl
Library List:
c:\pb\svntest\svntest_res.pbl
c:\pb\svntest\svntest_std.pbl
c:\pb\svntest\svntest_lng.pbl
c:\pb\svntest\svntest.pbl
PBORCA_SccRefreshTarget.
Calling cm_rebuild_application(CM_REBUILD_MIGRATE).
PBORCA_SccClose

Comment
  1. Stefan Ziems
  2. Thursday, 11 October 2018 08:59 AM UTC
Thanks, the script with the "localprojpath" line worked fine for me. :-)



Regards,

Stefan
  1. Helpful
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Tuesday, 25 September 2018 22:27 PM UTC
  2. PowerBuilder
  3. # 3

After you do the svn update use Orcascript to refresh the pbls.  See this article:  https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/175-continuous-integration-with-powerbuilder-2017-bonobo-git-and-jenkins

While it refers to Git the OrcaScript would be the same.

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.