1. Pedro Lucas
  2. PowerBuilder
  3. Thursday, 6 February 2020 17:31 PM UTC

Hi there!


Here in my company we have a round 50+ different systems.

Let's suppose I have to make a change in one of them. If I have the PBL's in my PC = no problem, just connect to TFS and do a GLV... But what if I don't have them? 

That's what we do today: Find another developer who has the PBL'S from that system, and then connect to tfs and download the source. There must be a better way to do that...


Is there a way to build the pbl's from the files in TFS? If yes, how ?

Pedro Lucas Accepted Answer Pending Moderation
  1. Thursday, 6 February 2020 19:29 PM UTC
  2. PowerBuilder
  3. # 1

Can you tell me wich methods from orca I should use to rebuild the PBL's?

Comment
  1. Michael Kramer
  2. Thursday, 6 February 2020 19:40 PM UTC
Define connection to source control >>> SCC SET CONNECT ...

Create empty PBL >>> CREATE LIBRARY ...

Get latest >>> SCC GET LATEST ...

Deploy files >>> BUILD ...

Build target >>> SCC SET TARGET ... + SCC FRESH TARGET ...

Recommendations : : : Start with simplest possible example, like full build of a target. Then add gradually. Test continuously. Keep scripts for "deploy w/build" separate from scripts for "get-latest w/build".
  1. Helpful
  1. Pedro Lucas
  2. Friday, 7 February 2020 12:36 PM UTC
Hi, Michael! Thank you for your answers!

I followed your instructions and started with the simplest: Connect with TFS..



Would you mind helping me with the connection with this ?

All the "scc set connect property" I've copied from the regedit of the pbw...

But when try the scc connect I get this error:

Unable to Read Registry Value: SOFTWARE\SourceCodeControlProvider\InstalledSCCProviders\Microsoft Team Foundation Serve

  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 6 February 2020 18:57 PM UTC
  2. PowerBuilder
  3. # 2

The help for Orcascript is in the main help file.

Theoretically it should be able to rebuild all the libraries from scratch. If your app is too complex for Orcascript, you may have to go with PowerGen.

 

Comment
There are no comments made yet.
Michael Kramer Accepted Answer Pending Moderation
  1. Thursday, 6 February 2020 18:41 PM UTC
  2. PowerBuilder
  3. # 3

Hi, it is possible to generate complete target from basically scratch. However lots of details makes it complex task. There are alternatives:

  1. For each PB target store a "baseline" set of "almost empty files" to ease the Get-Latest process
  2. For every release => store in source control "released" set of PBL files holding up-to-date source
  3. Create "magic tool" to construct complete set of .PBW + .PBT + .PBL + .PBD + .PBR + images + help files + everything else under source control from combination of incremental Get-Latest + Import
  4. Buy a tool that automates the process so you don't have to write the complete tool yourself
    (EX: PowerGen from E. Crane Computing) - Not cheap but value for money.

I have previously built the required tools = small collection of ORCAScript files, PowerShell scripts, and a PowerShell module encapsulating all the generic functionality. I don't have access to that code so I can't share it. Sorry.

You're welcome to ask for specific details if relevant.

HTH /Michael

Comment
  1. Pedro Lucas
  2. Thursday, 6 February 2020 18:52 PM UTC
I read that this ORCAScript can build a pbl.

But how can I create a ORCAScript? Couldn't find anything about it here..
  1. Helpful
  1. Michael Kramer
  2. Thursday, 6 February 2020 19:19 PM UTC
Documentation is limited. Several Q&As discuss ORCA/ORCAScript.

Official docs >>> PowerBuilder Help > Users Guide > Appendixes > The OrcaScript Language

  1. Helpful
There are no comments made yet.
Rodolfo Reyes Accepted Answer Pending Moderation
  1. Thursday, 6 February 2020 18:24 PM UTC
  2. PowerBuilder
  3. # 4

Hi,

 

We have exactly the same situation you describe.

What we do is upload the entire project as a binary in another folder. When someone needs the project, first download this forlder and then connect it to the TFS.

 

Rodolfo Reyes

 

 

Comment
  1. Pedro Lucas
  2. Thursday, 6 February 2020 18:53 PM UTC
I guess we could do that. But is it the best way?

There must be a way to build the PBL from what tfs holds..
  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.