Resources loads from the ClassLoader. So, the only requirement is that your config be in your classpath. If for some reason you want to load a config file from some other location then you are perfectly able to spin your own.All you need to pass to the SqlMapClientBuilder is a reader at minimum. You can also pass a property file along with the reader.
Brandon On Wed, 15 Dec 2004 16:06:52 +0200, Alexey Boroday <[EMAIL PROTECTED]> wrote: > Hello. > > I'm customizing storing map config files and noticed that Resources class > looks for config files only in two folders. > > Tell me please - why "providers.config" file is looking in the > _baseDirectory and all other config files - starting from the solution root > directory only? > > Is there any method to load providers.config and all other files from > custom folder? > > I've tried to load sqlmap.config file from custom directory via XmlDocument > but sqlMap resource is looking from the solution root folder and I couldn't > solve this so my plan has broken :( > > Thank you. > > ___________________________________________________________________________ > > This communication is confidential and may be legally privileged. > If you believe you are not an intended recipient, please inform the sender, > delete the e-mail and do not copy, print or use it or disclose it to others. > You can inform the sender by replying to this e-mail or by telephone (+380 44 > 4906080). > >