tbx_build_loader
Generate loader and unloader scripts (toolbox compilation process)
Syntax
tbx_build_loader() tbx_build_loader(toolbox_path) tbx_build_loader(toolbox_name) // obsolete tbx_build_loader(toolbox_name, toolbox_path) // obsolete
Arguments
- toolbox_path
a single string. Root directory of toolbox sources ; the script will be generated here (default: current directory). The file
toolbox_path/etc/*.start
must exist. The toolbox_name is retrieved from its basename.- toolbox_name (obsolete)
a single string. Toolbox short name ; the library and help chapter name when generating the default loader.
Examples
// Recommended usage, from any builder.sce: tbx_build_loader(get_absolute_file_path('builder.sce'))
Description
tbx_build_loader
is used for generating the loader and unloader files of a toolbox.
This macro is usally called from the builder.sce
script when creating a toolbox.
The name of the toolbox is retrieved from the name of the .start
file present in the etc
directory.
If the file toolbox_path/etc/*.start
is not empty (even not a single space)
tbx_build_loader
generates a loader.sce
script that will executes it at toolbox startup.
Otherwise, a default loader.sce
file performing the following is generated:
- loads the lib inside the
macros/
directory, if it exists; - executes the loader files in
sci_gateway/
directory, if it exists; - executes the loader files in
src/java/
directory, if it exists; - loads the help from the
jar/
directory, if it exists; - loads the demos in the
demos/
directory, if it exists; - loads the GUI preference configuration file in
etc
, if it exists.
Also generates an unloader file calling the etc
.quit file, if it exists.
History
Versão | Descrição |
5.4.0 | This function generates also an unloader.sce script |
6.0.0 |
|
Report an issue | ||
<< tbx_build_cleaner | Sections builders | tbx_build_localization >> |