Powerbuilder OrcaScript: how to get the latest data for a subset of PBL

OrcaScript Handy

I used PowerBuilder OrcaScript before automating the build of a PC connecting to the source control, getting the latest copy of the application objects, and then creating the application. But it was in a project in which all our application was at our disposal, and we owned all the code, and OrcaScript had no problems creating the entire application.

But now I just need to get information about a subset of PBL

Now I am working on a project in which we are setting up an existing third-party application. Therefore, I need to be able to refer to all third-party PBDs of third-party manufacturers, but only update PBL from a source that contains our special code that integrates into the vendor’s application infrastructure. We will move the updated custom PBLs to the application directory when the update is complete.

I experimented quite a bit, but could not successfully update only the subset of PBL that I want.

Firstly, can this be done in OrcaScript?

Secondly, if possible, what am I missing? I have successfully:

  • set properties and connect to the control source
  • performed "get the last" on target, which apparently causes OrcaScript to create the necessary empty PBLs
  • PBD lib

scc refresh target. , - , . , .

, , , .

--- ---

Orcascript:

start session

scc get connect properties "Y:\Project\Release\PBWorkspace.pbw"
scc connect
scc set target "Y:\Project\Release\Starboard.pbt" "outofdate exclude_checkout"

scc get latest version "Y:\Project\Release\Starboard.pbt"
scc exclude liblist "Many proprietary PBDs excluded here"

scc refresh target "migrate"
scc close

;File copies to happen here

end session

orcascr9.exe : Orca scc. -22.

.

6/16/2011   17:15 Source Management Initialization...
        Scc Provider: PushOk SVNSCC
Connection to source control established

PBORCA_SccSetTarget: y:\project\release\Starboard.pbt

Target settings: REFRESH OUT OF DATE | EXCLUDE CHECKOUT 

PushOk SVNSCC Status: Fetching file list for: Y:/Project/Release/
  App Name: Starboard    App Lib: y:\Files\StarboardPB\application.pbl
  Library List: Many PBLs and PBDs identified

Successfully created library: c:\projects\Starboard scripts\powerbuilderobjects\custom.pbl
Successfully created library: c:\projects\Starboard scripts\powerbuilderobjects\custom_maps.pbl

PBORCA_SccGetLatestVer
PBORCA_SccExcludeLibraryList:
        Much excluding going on here

PBORCA_SccRefreshTarget. Migrate and Full Rebuild
PushOk SVNSCC Status: Fetching file list for: C:/Projects/Starboard Scripts/PowerBuilderObjects

PushOk SVNSCC Status: Fetching status for : C:/Projects/Starboard Scripts/PowerBuilderObjects

PBL ,

DIFF2002 SccDiff error.  Unable to read PBL source for  c:\projects\Starboard scripts\powerbuilderobjects\custom.pbl(d_nautical.srd)

Calling cm_rebuild_application(CM_REBUILD_MIGRATE).
(0002): Error   C0193: One or more of the files in your library list could not be opened for write.

Errors encountered during import/compile.  Check SMS log.
PBORCA_SccClose
6/16/2011   17:16 Source control terminated

PBL ,

Calling cm_rebuild_application(CM_REBUILD_MIGRATE).
(0001): Error       C0193: One or more of the files in your library list could not be opened for write.
+3
1

. OrcaScript. , , , , , , , ", PB 9 PBL, PBD ."

, . , PowerGen, PowerBuilder. , , . , , .

script. PowerGen , PBD, PBL, . , .

+1

All Articles