1. Miguel Morin
  2. PowerBuilder
  3. Tuesday, 25 May 2021 18:46 PM UTC

Hi

We successfully migrated our Powerbuilder 11.5 app source with SVN to Powerbuilder 2019 R3 source with Git.

We now want to go a step further and automate the Powerbuilder exe and pbd compilation. 

We want to use pbc to compile the app, but before compiling we must make sur that the source in the pbl are up to date with the source files in ws_objects (for git).In the powerbuilder app, we just do a "Refresh" on the workspace and it is done, but is there a command for that with pbc or another that could run as  a "command" that we can put as a step in our continuous integration platform (Teamcity) ? 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 25 May 2021 18:52 PM UTC
  2. PowerBuilder
  3. # 1

Hi Miguel;

   You need to run the PB IDE's OCAScript utility first in front of the PBC to get the updated PB App's source code from the SVN repository.

regards ... Chris

Comment
There are no comments made yet.
Miguel Morin Accepted Answer Pending Moderation
  1. Tuesday, 25 May 2021 18:59 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

Will it work for git too? We are using git now and not svn.

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 25 May 2021 19:04 PM UTC
OrcaScript will handle either one. ;-)
  1. Helpful
There are no comments made yet.
Miguel Morin Accepted Answer Pending Moderation
  1. Thursday, 10 June 2021 20:47 PM UTC
  2. PowerBuilder
  3. # 3

Hi Chris

Thank for your help. I'm trying to write the script that basically just need to mimic a "Refresh" in the Powerbuidler IDE (the ws_object folder is already sync by the source control). I've tried the "scc refresh target" command thinking that this will rebuild my pbl from the objects in ws_objects folder, but instead it seems to add object file in my pbl folder...

Am I using the right command ? We are using git 

Here is  my full script :

start session
scc set connect property localprojpath "c:\dev\git-garaga"
scc set connect property logappend false
scc set connect property deletetempfiles "true"
scc connect offline
scc set target "c:\dev\git-garaga\powerbuilder\fab\fab.pbt" "refresh_all importonly"
scc refresh target "incremental"
scc close
end session

 

Thanks again

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 10 June 2021 21:25 PM UTC
Hi Miguel;

Have you tried ...

scc refresh target incremental // no quotes (same for other command options)

Regards ... Chris
  1. Helpful
There are no comments made yet.
Miguel Morin Accepted Answer Pending Moderation
  1. Friday, 11 June 2021 12:14 PM UTC
  2. PowerBuilder
  3. # 4

Yes but it does the same things. I am expecting to have the pbl rebuild from the ws_objects folder with this command as the help seems to describe  :


"scc set target -- Refreshes the object list in the PBL file according to the objects copied from ws_objects. The PBG file is no longer used by the SVN/Git solution to map and refresh objects in the PBL file."

 

This is exactly what I'm trying to do, but instead, it created files (like those in my ws_obejcts directly in my pbl folder. Which seems to be the contrary of what it describe (creating object files from pbl ????)

Here is a before / after picture of one of my pbl folder (sorry for French)

 

 

Attachments (2)
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.