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 ?
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- Crete PBL's from TFS source
- Pedro Lucas
- PowerBuilder
- Thursday, 6 February 2020 17:31 PM UTC
- Thursday, 6 February 2020 18:24 PM UTC
- PowerBuilder
- # 1
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
- Thursday, 6 February 2020 18:41 PM UTC
- PowerBuilder
- # 2
Hi, it is possible to generate complete target from basically scratch. However lots of details makes it complex task. There are alternatives:
- For each PB target store a "baseline" set of "almost empty files" to ease the Get-Latest process
- For every release => store in source control "released" set of PBL files holding up-to-date source
- 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
- 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
- Pedro Lucas
- Thursday, 6 February 2020 18:52 PM UTC
But how can I create a ORCAScript? Couldn't find anything about it here..
-
Helpful Loading... Helpful 0
- Michael Kramer
- Thursday, 6 February 2020 19:19 PM UTC
Official docs >>> PowerBuilder Help > Users Guide > Appendixes > The OrcaScript Language
-
Helpful Loading... Helpful 0
- Thursday, 6 February 2020 18:57 PM UTC
- PowerBuilder
- # 3
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.
- Thursday, 6 February 2020 19:29 PM UTC
- PowerBuilder
- # 4
Can you tell me wich methods from orca I should use to rebuild the PBL's?
- Michael Kramer
- Thursday, 6 February 2020 19:40 PM UTC
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".
-
Helpful Loading... Helpful 0
- Pedro Lucas
- Friday, 7 February 2020 12:36 PM UTC
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
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.
There must be a way to build the PBL from what tfs holds..