ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: search path for mapping files
Date Tue, 06 Sep 2005 14:00:43 GMT
If you want to set the base path, you could use a property variable. 


BasePath="file://var/config/ibatis/"

<sqlMap url="${BasePath}/config/Customer.xml<file:///c:/config/Customer.xml>" />

Clinton


On 9/6/05, Koranda Matthew James <matt.koranda@edb.com> wrote:
> 
> The developer guide also gives this example:
> 
> <sqlMap url="file:///c:/config/Customer.xml " />
> 
> if this is what you want but it doesn't seem as portable. Is this what
> you mean?
> 
> Matt
> 
> -----Original Message-----
> From: Eugeny N Dzhurinsky [mailto:eugenydzh@jdevelop.com]
> Sent: 6. september 2005 10:51
> To: user-java@ibatis.apache.org
> Subject: Re: search path for mapping files
> 
> On Tue, Sep 06, 2005 at 10:42:07AM +0200, Koranda Matthew James wrote:
> > I bundle the files along side my class files and jar the whole thing
> > together. Just add the full paths in you config:
> > <sqlMap resource="package/structure/here/GeneralReport.xml"/>
> > Is that what you mean?
> 
> Not really, I don't want to jar the config for now and put it in the
> classpath, I'm in development stage and would like to speed up changed
> as much as possible :)
> 
> --
> Eugene N Dzhurinsky
>

Mime
View raw message