Akins, Greg wrote:
Yes, locate the files relative to the classpath using something likeEither I didn't ask the right question, or I'm not completely understanding your answer...
I have code like...
Properties.load(new FileInputStream("config.properties"))
While maven.eclipse.resources.addtoclasspath adds the resource directory in my .classpath; that doesn't allow the FileInputStream constructor to look "anywhere" for this file.
Is there anyway I can reference the relatively location of this file for both the Maven directory structure and the eventual web app directory structure?
InputStream propertyIn = this.getClass().getResourceAsStream("config.properties");
Properties.load(propertyIn);
--
Erik Husby
Team Lead for Software Quality Automation
Broad Institute of MIT and Harvard Rm. 2192 320 Charles St, Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227, email: [EMAIL PROTECTED] AIM: ErikAtBroad
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
