Listing 1: build_pbdj.cmd

rem  ********************************************************
rem  This is the PBORCA Command file to build the Application
rem  ********************************************************

rem  ********************************************************
rem  Lets clean out the QA directory
rem  ********************************************************

Del .\Executable\*.pbd /Q
Del .\Executable\*.exe /Q

rem  ********************************************************
rem  Now Let's refresh the PBLs and build the PBD's and EXE
rem  run orcascript
rem  ********************************************************

orcascr105 build_pbdj_sample.orca
If errorlevel 1 orcascr105 build_pbdj_sample_inc.orca
If errorlevel 1 goto Finish

rem  ********************************************************
rem  Now lets clean up the source directory
rem  ********************************************************
 
Del .\Source\*.pbd /S /Q
Del .\Source\*.exe /S /Q

rem  ********************************************************
rem  Done!
rem  ********************************************************
:Finish


Listing 2: build_pbdj_sample_ns.orca

;**********************************************************************
;  This is the PBORCA file to build the Application
;**********************************************************************

start session

;**********************************************************************
;   Refresh all the objects in all the PBLs in the target of the
;   application and regenerate them all
;**********************************************************************
set liblist 	".\Source\prj1_pbl1\pbdj_orca.pbl;.\Source\prj1_pbl2\prj1_pbl2.pbl;.\Source\prj1_pbl3\prj1_pbl3.pbl"
set application ".\Source\prj1_pbl1\pbdj_orca.pbl" "pbdj_orca"

build application FULL

;**********************************************************************
;    Now build the EXE and PBD
;**********************************************************************

build executable ".\Source\pb_orca.exe" ".\Resources\appexe.ico" ".\Source\prj1_pbl1\pbdj_orca.pbr" "yyy" NEWVSTYLECONTROLS
build Library ".\Source\prj1_pbl1\pbdj_orca.pbl" "" PBD
build Library ".\Source\prj1_pbl2\prj1_pbl2.pbl" "" PBD
build Library ".\Source\prj1_pbl3\prj1_pbl3.pbl" ".\Source\prj1_pbl3\prj1_pbl3.pbr" PBD

;**********************************************************************
;    Copy the files to the QA Directory
;**********************************************************************

File Copy ".\Source\pb_orca.exe" ".\Executable\pb_orca.exe"
File Copy ".\Source\prj1_pbl1\pbdj_orca.pbd" ".\Executable\pbdj_orca.pbd"
File Copy ".\Source\prj1_pbl2\prj1_pbl2.pbd" ".\Executable\prj1_pbl2.pbd"
File Copy ".\Source\prj1_pbl3\prj1_pbl3.pbd" ".\Executable\prj1_pbl3.pbd"

;**********************************************************************
;    Close the ORCA Script Session
;**********************************************************************

end session


Listing 3: build_pbdj_sample.orca

;**********************************************************************
;  This is the PBORCA file to build the Application SC
;**********************************************************************
start session

;**********************************************************************
;  Set up the SCCS Connection Parameters
;**********************************************************************
scc set connect property provider "PB Native"
scc set connect property userid "Build.User"
scc set connect property logfile "buildfromsource.log"
scc set connect property logappend false
scc set connect property project "c:\source_control\dev"
;scc set connect property localprojpath ".."
scc set connect property deletetempfiles "False"

;**********************************************************************
;   Now Connect to the SCCS Provider
;**********************************************************************
scc connect 

;**********************************************************************
;   Refresh all the objects in all the PBLs in the target of the
;   application and regenerate them all
;**********************************************************************
scc set target ".\Source\prj1_pbl1\pbdj_orca.pbt" importonly refresh_all

build application FULL

;**********************************************************************
;    Now build the exe and PBD
;**********************************************************************
build executable ".\Source\pb_orca.exe" ".\Resources\appexe.ico" ".\Source\prj1_pbl1\pbdj_orca.pbr" "yyy" NEWVSTYLECONTROLS
build Library ".\Source\prj1_pbl1\pbdj_orca.pbl" "" PBD
build Library ".\Source\prj1_pbl2\prj1_pbl2.pbl" "" PBD
build Library ".\Source\prj1_pbl3\prj1_pbl3.pbl" ".\Source\prj1_pbl3\prj1_pbl3.pbr" PBD

;**********************************************************************
;    Close the SCCS Connection
;**********************************************************************
scc close

;**********************************************************************
;    Copy the files to the Executable Directory
;**********************************************************************
File Copy ".\Source\pb_orca.exe" ".\Executable\pb_orca.exe"
File Copy ".\Source\prj1_pbl1\pbdj_orca.pbd" ".\Executable\pbdj_orca.pbd"
File Copy ".\Source\prj1_pbl2\prj1_pbl2.pbd" ".\Executable\prj1_pbl2.pbd"
File Copy ".\Source\prj1_pbl3\prj1_pbl3.pbd" ".\Executable\prj1_pbl3.pbd"

;**********************************************************************
;    Close the PBORCA Session
;**********************************************************************
end session