Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Absolute Outputlocation?
Absolute Outputlocation? [message #100207] Wed, 01 October 2003 03:35 Go to next message
Eclipse UserFriend
Originally posted by: m.bauer.signsoft.com

Hi,

I'm trying to get the output location of my Java project. This works fine,
except the fact, that I'm only getting the relativ path. This is, in my
case, /sample/classes.
But I need the absolute path like c:\sample\classes.
Ipath.makeabsolute() doesn't seem to work proper. So how do I achieve it, to
get an absolute path?

Thanks in advance.

Michael Bauer
Re: Absolute Outputlocation? [message #100263 is a reply to message #100207] Wed, 01 October 2003 08:56 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
> I'm trying to get the output location of my Java project. This works fine,
> except the fact, that I'm only getting the relativ path.
Platform.getLocation() could help you. Be aware that there can be several
output locations!
Bye,

Thorsten
Re: Absolute Outputlocation? [message #100277 is a reply to message #100207] Wed, 01 October 2003 10:26 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO--SPAM.us.ibm.com

IProject (or IContainer, I don't remember which) has a getLocation type
of method which takes a path relative to that project/container and
returns the file location.

makeAbsolute simple puts a "/" in front of the path so that it is not a
relative path.

Rich
Previous Topic:Plugin unit testing
Next Topic:Cannot run Ant script
Goto Forum:
  


Current Time: Sun Jul 13 21:50:45 EDT 2025

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

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

Back to the top