Need to find local file system path for linked output folder [message #312792] |
Tue, 20 February 2007 10:32  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03865 seconds