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.curPath

Return the current package path

Contents

Synopsis

 
var path = xdc.curPath();

Description

xdc.curPath returns the current package path after all '^' references have been resolved. For more information about the use of '^' within user specified package paths see Managing the Package Path in the XDCtools User's Guide.

Return Value

xdc.curPath returns a string consisting of one or more repository paths separated by the ';' character.

Examples

To display the current package path:

 
print(xdc.curPath());

To display the current package path, one repository per line:

 
 
 
for each (var repo in xdc.curPath().split(';')) {
   print(repo);
}
[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