Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Need to find local file system path for linked output folder
Need to find local file system path for linked output folder [message #312792] Tue, 20 February 2007 10:32 Go to next message
Eclipse UserFriend
Sorry if this is a newbie question, but the documentation has been
unhelpful to me.

I'm trying to make the FindBugs eclipse plugin work with linked output
folders:

http://sourceforge.net/tracker/index.php?func=detail&aid =1653258&group_id=96405&atid=614693

So, I've got a project FindBugsProblem that has set foo as a linked output
folder. The .classfile file contains:
<classpathentry kind="output" path="foo"/>

The .project file contains:
<linkedResources>
<link>
<name>foo</name>
<type>2</type>
<location>/Users/pugh/Documents/hidden/bar/foo</location>
</link>
</linkedResources>

I need to figure out how, from the IJavaProject for a project, to get the
actual local file system path
for the output location. getOutputLocation() returns /FindBugsProblem/foo

thanks for any help.

Bill Pugh
Re: Need to find local file system path for linked output folder [message #312797 is a reply to message #312792] Tue, 20 February 2007 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

That method says it returns an absolute workspace path. So, you want
something like this:

ResourcesPlugin.getWorkspace().getRoot().findMember(javaProj ect.getOutputLocation()).getLocation();

Obvious, isn't it? ;)

--

Bill Pugh wrote:
> Sorry if this is a newbie question, but the documentation has been
> unhelpful to me.
>
> I'm trying to make the FindBugs eclipse plugin work with linked output
> folders:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid =1653258&group_id=96405&atid=614693
>
>
> So, I've got a project FindBugsProblem that has set foo as a linked
> output folder. The .classfile file contains:
> <classpathentry kind="output" path="foo"/>
>
> The .project file contains:
> <linkedResources>
> <link>
> <name>foo</name>
> <type>2</type>
> <location>/Users/pugh/Documents/hidden/bar/foo</location>
> </link>
> </linkedResources>
>
> I need to figure out how, from the IJavaProject for a project, to get
> the actual local file system path
> for the output location. getOutputLocation() returns /FindBugsProblem/foo
>
> thanks for any help.
>
> Bill Pugh
>
Re: Need to find local file system path for linked output folder [message #312798 is a reply to message #312792] Tue, 20 February 2007 11:47 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Bill,

I think you should just get the IFolder
(IWorkspaceRoot.getFolder("/FindBugsProblem/foo")) for it and call
getLocation/getLocationURI on that.


Bill Pugh wrote:
> Sorry if this is a newbie question, but the documentation has been
> unhelpful to me.
>
> I'm trying to make the FindBugs eclipse plugin work with linked output
> folders:
>
> http://sourceforge.net/tracker/index.php?func=detail&aid =1653258&group_id=96405&atid=614693
>
>
> So, I've got a project FindBugsProblem that has set foo as a linked
> output folder. The .classfile file contains:
> <classpathentry kind="output" path="foo"/>
>
> The .project file contains:
> <linkedResources>
> <link>
> <name>foo</name>
> <type>2</type>
> <location>/Users/pugh/Documents/hidden/bar/foo</location>
> </link>
> </linkedResources>
>
> I need to figure out how, from the IJavaProject for a project, to get
> the actual local file system path
> for the output location. getOutputLocation() returns /FindBugsProblem/foo
>
> thanks for any help.
>
> Bill Pugh
>
Previous Topic:please help urgent
Next Topic:How to displaing a PDF in a plugin?
Goto Forum:
  


Current Time: Tue Jul 22 14:20:42 EDT 2025

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

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

Back to the top