|
Re: Location of linked resource [message #326733 is a reply to message #326709] |
Mon, 31 March 2008 12:44 |
Eclipse User |
|
|
|
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.03300 seconds