Skip to main content



      Home
Home » Newcomers » Newcomers » Run configurations: obtaining the dirname of the ${resource_loc}
Run configurations: obtaining the dirname of the ${resource_loc} [message #979888] Sun, 11 November 2012 00:15
Eclipse UserFriend
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.
Previous Topic:Eclipse won't start, help?
Next Topic:compiling on command-line
Goto Forum:
  


Current Time: Tue Jul 15 07:02:16 EDT 2025

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

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

Back to the top