|
Re: Location of linked resource [message #326733 is a reply to message #326709] |
Mon, 31 March 2008 12:44 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Leif Frenzel wrote:
> Hi,
>
> When I run this code:
>
> [snip]
> IWorkspaceRoot wsRoot = ResourcesPlugin.getWorkspace().getRoot();
> IProject project = wsRoot.getProject( "p" );
> project.create( null );
> project.open( null );
>
> IFolder folder = project.getFolder( "f" );
> folder.createLink( new Path( "/tmp/f/" ), IResource.ALLOW_MISSING_LOCAL,
> null );
>
> System.out.println( folder.getLocation() );
> System.out.println( folder.getRawLocation() );
> System.out.println( folder.getLocationURI() );
> [snap]
>
> I'm getting:
>
> [snip]
> /private/tmp/f
> /private/tmp/f
> file:/private/tmp/f
> [snap]
>
> Which is a bit surprising: where does the 'private' come from? Am I
> missing something? How can I get to the correct local path of the linked
> folder?
Are you certain that the project is not located in the directory named
/private ?
Eric
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03507 seconds