Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Run configurations: obtaining the dirname of the ${resource_loc}
Run configurations: obtaining the dirname of the ${resource_loc} [message #979895] Sun, 11 November 2012 05:15 Go to next message
Dun Peal is currently offline Dun PealFriend
Messages: 6
Registered: October 2012
Junior Member
Hi.

I'm setting up a Run Configuration that reads a file in the same directory as the .java file I'm running.

I found ${resource_loc}, but that is the full path of the resource. What I really need is its dirname, so I can do something like:

${resource_dirname:/input.txt}

Since I couldn't find ${resource_dirname}, I tried ${resource_loc:./input.txt}, and that didn't work.

How do obtain the dirname of ${resource_loc}?

Thanks, D.
Re: Run configurations: obtaining the dirname of the ${resource_loc} [message #980885 is a reply to message #979895] Mon, 12 November 2012 02:26 Go to previous message
Dun Peal is currently offline Dun PealFriend
Messages: 6
Registered: October 2012
Junior Member
This topic got posted numerous times, no idea why.

In any case, after a lot more digging I found the answer myself: it's the variable
${container_loc}
.
Previous Topic:Help i can't run Eclipse
Next Topic:Creating a plugin
Goto Forum:
  


Current Time: Thu Apr 25 23:54:48 GMT 2024

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

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

Back to the top