From RTSC-Pedia

Jump to: navigation, search
revision tip
—— LANDSCAPE orientation
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 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 04-Aug-2010 21:08 UTC
Copyright © 2008 The Eclipse Foundation. All Rights Reserved


Views
Personal tools
package reference