Accessing .properties file

2012-03-30 Thread SudeepShakya
I am using netbeans for maven project(with added wicket framework) and i want to access something.properties from a java class. Tried to modify pom.xml but not worked. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accessing-properties-file-tp4518748p4518748.html

RE: Accessing .properties file

2012-03-30 Thread Wilhelmsen Tor Iver
I am using netbeans for maven project(with added wicket framework) and i want to access something.properties from a java class. Are the properties files not being put into the output jar/war files? Remember that Maven by default sets up a structure where *.java goes into src/main/java and

RE: Accessing .properties file

2012-03-30 Thread SudeepShakya
Yes i had put it in the required folder but i think i didn't write the right code in pom.xml. Coiuld u please give me a sample of the code for the pom.xml for accessing .properties file Thanks for reply. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accessing

RE: Accessing .properties file

2012-03-30 Thread Wilhelmsen Tor Iver
Coiuld u please give me a sample of the code for the pom.xml for accessing .properties file Not sure what you mean, you don't usually put code in pom.xml. Look into configuring the resource elements to include the correct file types and folders. - Tor Iver

RE: Accessing .properties file

2012-03-30 Thread SudeepShakya
I mean that if sample.properties is the required file, then how to define in the pom.xml The sample.properties file is in the folder src/java. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accessing-properties-file-tp4518748p4518872.html Sent from the Users forum

RE: Accessing .properties file

2012-03-30 Thread Richard W. Adams
This is really a Maven question, not Wicket. You'll probably get better answers from a Maven forum. From: SudeepShakya shakyasud...@live.com To: users@wicket.apache.org Date: 03/30/2012 07:15 AM Subject:RE: Accessing .properties file I mean that if sample.properties