Re: [OT] Find properties file in classpath
Hi Ashish, Seems ok except maybe you forgot to set url to ClassLoader.getSystemResource("approval.properties"). Also, googling gave me this link which you may find useful: http://java.sun.com/j2se/1.4.2/docs/guide/resources/resources.html Regards, Geeta Ashish Kulkarni <[EMAIL PROTECTED]> wrote on 08/17/2005 10:48:13 AM: > Hi > is there a problem if i do some thing like below > > URL url = null; > url = > this.getClass().getClassLoader().getResource("approvals.properties"); > if(url== null) > { > > ClassLoader.getSystemResource("approvals.properties"); > } > > > Ashish
Re: [OT] Find properties file in classpath
Hi is there a problem if i do some thing like below URL url = null; url = this.getClass().getClassLoader().getResource("approvals.properties"); if(url== null) { ClassLoader.getSystemResource("approvals.properties"); } Ashish --- Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > how do i find all the properties file available in > classpath?? > > Ashish > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Find properties file in classpath
Hi how do i find all the properties file available in classpath?? Ashish __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]