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
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 everything else goes into src/main/resources. So the latter 
should have the something.properties file.

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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-properties-file-tp4518748p4518770.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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  elements to include the correct file types and 
folders.

- Tor Iver



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 
To: users@wicket.apache.org
Date:   03/30/2012 07:15 AM
Subject:    RE: Accessing .properties file



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 mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**