Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » Package path containing whitespace
Package path containing whitespace [message #2079] Thu, 16 April 2009 15:25 Go to next message
Badri is currently offline BadriFriend
Messages: 17
Registered: July 2009
Junior Member
Champs,
I am on a windows machine and have one of my packages under "Program
Files/....". I do a xdc.getPackageBase("package name") and add it to the
Header search path. This breaks the compilation since the -I path is not
quoted.
I have fixed the issue by converting long names to DOS directory format in
the package.bld.
Is there inherent support in XDC tools to get the DOS directory format. I
see that the package path is correctly converted by XDC to DOS format
eliminating spaces.Is this feature exposed to user of XDC tools.

Thanks
Badri
Re: Package path containing whitespace [message #2093 is a reply to message #2079] Thu, 16 April 2009 20:32 Go to previous message
Dave Russo is currently offline Dave RussoFriend
Messages: 172
Registered: July 2009
Senior Member
Badri wrote:
> Champs,
> I am on a windows machine and have one of my packages under "Program
> Files/....". I do a xdc.getPackageBase("package name") and add it to the
> Header search path. This breaks the compilation since the -I path is not
> quoted.
> I have fixed the issue by converting long names to DOS directory format
> in the package.bld.
> Is there inherent support in XDC tools to get the DOS directory format.
> I see that the package path is correctly converted by XDC to DOS format
> eliminating spaces.Is this feature exposed to user of XDC tools.
>
> Thanks
> Badri
>
Good question: XDCtools uses xdc.services.io.File.getDOSPath()
internally to handle paths with spaces, so it seems reasonable that
others would find this method useful.

The xdc.services.io package (and the File module) have not yet been
reviewed for use by others; i.e., we reserve the right to change/remove
this package in future releases without notice.

However, there is little doubt that this functionality will always be
required. So, I see very little chance that this one method will be
changed/removed.

I suppose it goes without saying that the "right" answer is to fix the
target to properly quote -I paths (or not use paths with spaces ;).
Previous Topic:How to create memory sections for a given platform in RTSC
Next Topic:Packing
Goto Forum:
  


Current Time: Fri Dec 13 20:37:20 GMT 2024

Powered by FUDForum. Page generated in 0.03033 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top