From RTSC-Pedia
revision tip
LANDSCAPE orientation[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
XDCscript - xdc.loadPackage
Load specified package
Contents |
Synopsis
| var pkg = xdc.loadPackage(packageName); |
Parameters
- packageName
- a '.' separated package name; e.g., "ti.sysbios.knl".
Description
This method finds a package's schema file (package/<pkgName>.sch), loads it, and calls the package's initialization function init().
Return Value
xdc.loadPackage returns a package object or throws an exception if the package can not be found.
Throws
This method may throw an xdc.services.global.XDCException exception with one of the following ids:
- "xdc.PACKAGE_NOT_FOUND" - in the event that the specified package can not be found or its IDL files have not been compiled.
[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
Copyright © 2008 The Eclipse Foundation. All Rights Reserved