Pb + Jboss 最简单的三层开发模式 [ www.pbjboss.cn ]

[转]WHAT IS PBORCA.EXE ?

上一篇 / 下一篇  2009-08-14 09:49:54 / 个人分类:PB开发

此文转载于http://dm.char.com.ua/pb/pborca.htm

WHAT IS PBORCA.EXE ?- it is a free tool to compile Powerbuilder projects and to manage objects in PBL libraries.
*.ORCfiles - it's a special scripts to do it.

Download Old ANSI version:
pborcaA.rarversion (YMD)2005-01-13
Download New UNICODE+ANSI version:
pborcaW.rarversion (YMD)2007-08-08


Package contents
install.cmdinstallation script. copiespborca.exetowindows\system32directory and importspborca.reginto your registry
pborca.exeA unicode tool to execute orca scripts (*.orc)
pborcaa.exeAn ansi tool to execute orca scripts (*.orc)
pborca.htmthis file
example.orccontains allorca scriptcommands with explanations.
pborca.regwindows registry modification to support context menu for*.orcfiles

You can useinstall.cmdto install this tool on your computer.
After installation you'll have a special context menu in the explorer for*.orcfiles:

Edit Scriptopens selected orca script. usingnotepad
Run Scriptexecutes all commands from the selectedorca scriptusingpborca.exe

NOTE :To use this tool you have to set yourpathenvironment variable to PowerBuilder shared files.


Rools of the ORCA SCRIPT

One command - one line.
Comma - is delimiter for parameters of the command.
# at the begining of the line designate all text on the line as a comment.
%- is a meta. symbol.
the following meta. symbols are supported:

%nNew line
%rCarriage return
%tTab
%,Comma
%%%
combination with any other symbol - returns symbol itself
Some parameters are optional and could be omitted. In this help they are quoted with []:
regenerate
[pblName], [itemName], [itemType]
If a parameter is omitted, you must specify coma in any case. Example:
#regenerate all windows in test.pbl
regenerate
test.pbl, , win

#regenerate all objects named "main" in test.pbl
regenerate
test.pbl, main,

#regenerate all objects in test.pbl
regenerate
test.pbl, ,

#regenerate all objects in all libraries from the current library list
regenerate
, ,

The command parameters could contain environment variables:
#create library my.pbl in %TMP% directory
library create
%%TMP%%\my.pbl ,

You can pass variables as parameters to pborca.exe :
    pborca.exe -Dsrcdir=c:\projects\TestSvn -Ddstdir=c:\projects\TestPb
In script. you can access these new variables:
#import c:\projects\TestSvn\myObject.sru into c:\projects\TestPb\myLib.pbl
import
%%SRCDIR%%\myObject.sru , %%DSTDIR%%\myLib.pbl


SUPPORTED ORCA COMMANDS
session beginpbOrcDllStarts orca session. The new parameterpbOrcDlldefines which PowerBuilder version you are going to use during this session.
This library appears in the PowerBuilderSharedfolder.
The name of this library ispborcXX.dll, where XX is version of PowerBuilder. For example:
PB VersionDLL Name
6.5pborc65.dll
7.0pborc70.dll
9.0pborc90.dll
10.0pborc100.dll
10.5pborc105.dll
#Example of command:
session begin
pborc70.dll
Note: current version of PBORCA.exe does not support unicode versions of PB
copy itempblSrc, [entryName], [entryType], pblDstcopies object(s) from librarypblSrctopblDst.
entryNameor/andentryTypecould be omitted for all objects.
entryType: app, dw, fn, menu, query, struct, uo, pipe, proxy, or win.
pblSrccan contain wildcard characters (* and ?).
Note: this command overwrites item in the destination library.
library createpblName, [comments]creates a new librarypblNamewithcomments
set liblist beginSpecial command to begin library list enumeration.
After this command, every line is a pbl library name.
There could be comments within the library list.
Optionally you can specify parameters of PBL compilation (used only forbuild execommand).
The format of library list item is:
pblName[;] [, isPBD [, pbrName] ]
Where:
pblNameis a library name. It can contain ';' at the end (like in PB library list)
isPBDspecifies a way to build this library. Use value1to build PBD/DLL for this library, or0to include it into executable. If this option is omitted then default value used = 1.
pbrNamedefines a resource file for thepblName. You can't specifypbrNameifisPBD=0.
#Usage example:

set liblist begin
#do not compile test1.pbl into separate PBD/DLL
test1.pbl , 0
#compile test2.pbl into separate PBD/DLL and use test2.pbr resource file
test2.pbl , 1, test2.pbr
#compile test3.pbl into separate PBD/DLL (default behavior)
test3.pbl
set liblist end
set liblist endSpecial command to end library list enumeration.
set applicationpblName, applicationNameSets current applicationapplicationName. The parameterpblNamedefines name of the application library.
If both parameters ommited, ORCA will set up an internal default application as current application (usefull to create(import) a new application).
build appbuildTypeCompiles all the objects in the libraries included on the library list.
If necessary, the compilation is done in multiple passes to resolve circular dependencies.
buildType:fullorincrementalormigrate.
build exeexeName, iconName, pbrName, codeTypeCreates a PowerBuilder executable withcodeType=pcode orcodeType=machinecode.
Note: before creating executable you must delete the fileexeNameif it exists.
build librarypblName, [pbrName], typeCreates a separated PowerBuilder dynamic library withtype=pbd ortype=dll.
Note: To build all libraries+executable usebuild execommand.
delete itempblName, entryName, entryTypeDeletes a PowerBuilder library entryentryNameof typeentryTypefrom librarypblName.
delete duplexprimaryLib, deleteFromLibDeletes objects fromdeleteFromLibthat found in theprimaryLib.
regenerate[pblName], [itemName], [itemType]Compiles an objectitemNameof typeitemTypein a PowerBuilder librarypblName.
TheitemNameand/oritemTypecould be omitted, then the parameter will be ignored.
IfpblNameis omitted then regeneration will be done for all libraries from the library list.
Note: you should set library list and application, to make regeneration correctly.
regenerateallCompiles (regenerates) each object from the library list while there are compilation errors. This command was created specially for use after importing the whole project from source files. During rebuild ( full or migrate ) pborca can crash. In this case use this command.
Note: you should set library list and application, to make regeneration correctly.
exportpblName, [itemName], [itemType], directoryExports object(s) defined byitemNameanditemTypefrom a librarypblNameto a destinationdirectory.
TheitemNameand/oritemTypecould be omitted, then the parameter will be ignored.
ThepblNamecan contain wildcard characters (* and ?). For unicode version only HEXASCII export type implemented.
importexportedFile, dstLibraryImports previously exported object(s) fromexportedFileintodstLibrary. Ignores all compilation errors. You must set application before calling this function. If it's a new application, you must set default application by calling
set application ,
without any parameters. After whole application import you must callbuild app migrate.
TheexportedFilecan contain wildcard characters (* and ?).
#Usage example:
import
*.sr?, temp\work.pbl
For unicode version only HEXASCII, ASCII, and UNICODE file types are supported.
import moveexportedFile, dstLibraryThe same asimportbut after executionexportedFilewill be deleted from your disk.
import moveokexportedFile, dstLibraryThe same asimport movebut after executionexportedFilewill be deleted from your disk only if import was done without any errors.
import pbg2pblpbgFile, dstFolderImports all objects specified in thepbgFileinto corresponding pbl file located indstFolder
pbgFile
could contain wildcard symbols.dstFolderis a path where PBLs must be located.
Libraries must exist and present in the library list.
import pbg2pbl anypbgFile, dstFolderThe same asimport pbg2pblbut skips pbg and source files if they are not exists.
syssys_commandExecutes system command defined bysys_command.
echotextDisplaystextmessagee.
timestampdisplays current date and time.
target create libpbtFilecreates powerbuilder libraries that are specified in the target filepbtFile.
Libraries will be located in the relative path topbtFile.
Note: target should contain only relative paths for libraries!
target importpbtFile, sourceDirFor each library specified inpbtFile,
    opens corresponding pbg file insourceDir,
       and imports all the objects from thesourceDirfor each pbg
          into a library that is located nearpbtFile.
Note: Before this command you have to set library list and application.
target import anypbtFile, sourceDirThe same astarget importbut skips pbg and source files if they are not exists.
target set apppbtFileSets current application specified inpbtFile. See:set applicationcommand.
target set liblistpbtFileSets library list specified inpbtFile.
session endends orca session.


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2012-05-24  
  12345
6789101112
13141516171819
20212223242526
2728293031  

数据统计

  • 访问量: 4249
  • 日志数: 13
  • 文件数: 1
  • 书签数: 1
  • 建立时间: 2009-08-06
  • 更新时间: 2009-12-10

RSS订阅

Open Toolbar