Any ideas,
Jason
Script :
start session
scc get connect properties
"C:\Develop\PowerBuilder\Develop_PB9\pb9_development.pbw"
scc connect
scc set target ".\ahs_pfc.pbt" "refresh_all exclude_checkout"
; scc refresh target "full"
; app, dw, fn, menu, query, struct, uo, win, pipe, project, or proxy.
regenerate "ahscore.pbl" "w_ahs_logon" "win"
scc get latest version "ahscore.pbl"
scc close
end session
Result :
...
c:\program files\sybase\shared\powerbuilder\pbdom90.pbd
c:\program files\sybase\shared\powerbuilder\pbejbclient90.pbd
c:\program files\sybase\shared\powerbuilder\pbsoapclient90.pbd
regenerate "ahscore.pbl" "w_ahs_logon" "win"
scc get latest version
ahscore.pbl
Orca error in 'scc get latest version '. Result Code -22.
Scc operation failed. See SMS log.
An undetermined Scc error occurred.
Last Command Failed.
scc close
endSession
What you're looking for is:
SCC SET TARGET ".\ahs_pfc.pbt" outofdate exclude_checkout
SCC REFRESH TARGET "full"
--
Paul Horan[TeamSybase]
"@ poboxes dot com" <""jasonvogel \"@ poboxes dot com"> wrote in message news:411a641d@forums-1-dub...
see the fourth line from the bottom.
Basically, what I'm trying to do is to regen a PBL at a time without
having to specify each object within the PBL.
Jason
OrcaScript supports the following commands:
*
start session
*
end session
*
set liblist pbl_list [pbl_list ...]
*
set application pblName applicationName
*
set name = value
*
set name += value
*
echo value [value ...]
*
file copy fromFile toFile
*
regenerate pblName entryName entryType
*
copy entry pblName entryName entryType toPblName
*
build library pblName pbrName <pbd | 32>
*
build executable exeName iconName pbrName pbdflags [machinecode]
*
build application <full | migrate | incremental >
*
build project pblName projectName [ serverName serverPort ]
*
create library pblName pblComments
*
scc get connect properties workspaceName
*
scc set connect property provider sccProvider
*
scc set connect property userid userID
*
scc set connect property logfile logFileName
*
scc set connect property project projectPath
*
scc set connect property localprojpath localProjectPath
*
scc set connect property auxproject auxProjectPath
*
scc set connect property logappend < true | false >
*
scc set connect
*
scc set target targetName [refreshType][refreshOption][refreshOption]
*
scc get latest version file_list [file_list ...]
*
scc exclude liblist pblName [ pblName ...]
*
scc refresh target targetName <full | migrate | incremental >
*
scc close
Ah - the GET LATEST VERSION is a recent addition to the spec. I'd forgotten about it.
That's used for non-PB files, such as .bmps, .jsps, whatever. It's not used for PB objects in PBLs.
You never have to specify each object in the PBL. Use outofdate/exclude_checkout, and Refresh Target Full. It will
figure out which objects are out of sync (and not currently checked out), get them, and do a full rebuild of the target.
If you'd rather go with an incremental build, do that as well. PBL by PBL isn't an effective solution, in the long
run...
--
Paul Horan[TeamSybase]
Jason
I was kind of hoping for another response to this last point. So are you then
saying that the syntax is not supported but should be? Basically, do you have
any suggestions on how I tackle this issue?
Thanks,
Jason
Sorry, I was at the Techwave conference last week, and consequently was slow in responding.
Yes - the syntax is available today, and it works fine. Define "has not worked correctly"...
I've been testing OrcaScript against the PEAT sample application (which is PFC based), and it does a great job doing a
full target refresh. And there's always Powergen (www.ecrane.com)...
--
Paul Horan[TeamSybase]
scc get latest version ".\AHS Classlibs PFC 9\ahscore.pbl"
Which I think I finally understand why it's failing. OrcaScript is not looking
inside the PBL for me and pulling each file...and the file doesn't exist in PVCS
that way...we didn't version each PBL as a directory... Any chance that this
kind of functionality could be added to OrcaScript?
Any chance you can request the following be added to OrcaScript....
regenerate ahscore.pbl
Thanks,
Jason
> So do I have the following typed correctly?
>
> scc get latest version ".\AHS Classlibs PFC 9\ahscore.pbl"
>
> Which I think I finally understand why it's failing. OrcaScript is not looking
> inside the PBL for me and pulling each file...and the file doesn't exist in PVCS
> that way...we didn't version each PBL as a directory... Any chance that this
> kind of functionality could be added to OrcaScript?
>
> Any chance you can request the following be added to OrcaScript....
>
> regenerate ahscore.pbl
>
> Thanks,
> Jason
You're missing the point... You don't register the PBLs as files within PVCS, so there's no need to do "Get Latest
Version" of a PBL. You register each object individually, and PVCS manages all those as individual archives. And you
don't regenerate a PBL, you regenerate the OBJECTS that live inside the PBL...
The command you're looking for is the one from way back in this thread:
SCC SET TARGET "ahs_pfc.pbt" outofdate exclude_checkout
SCC REFRESH TARGET "full"
The following articles have helped a lot of people understand the basics of the PB/SCC interface.
http://www.sys-con.com/pbdj/archives2/0812/horan/
http://www.sys-con.com/pbdj/archives2/0901/horan/
--
Paul Horan[TeamSybase]