Hmm....this is an easy fix. I probably neglected to pass sqlMap attributes through the property tokenizer.
Clinton On Wed, 2 Feb 2005 14:28:19 +0100, MichaÅ MaÅecki <[EMAIL PROTECTED]> wrote: > Tricky question ;) Of course I did: > > properties: > core=pl/psnc/progress/szd/rad/sqlrad_pg.xml > > sqlMapConfig: > <sqlMap resource="${core}" /> > > Exception: > Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. > Cause: java.io.IOException: Could not find resource ${core} > > MichaÅ MaÅecki > Have you tried it? > > On Wed, 2 Feb 2005 14:14:48 +0100, MichaÅ MaÅecki > <[EMAIL PROTECTED]> wrote: > > Hello, > > is it possible to use constant properties (${}) in the main configuration > > file, e.g.: > > <sqlMapConfig> > > <properties resource="pl/psnc/progress/szd/rad/common.properties"/> > > <sqlMap resource="${core}" /> > > </sqlMapConfig> > > > > I want to use it to manage files for different db engines. The best would > be > > to use just the prefix/suffix,: > > <sqlMap resource="pl/.../file${suffix}.xml" /> > > Can we do something like this in ibatis? > > MichaÅ MaÅecki > > > > > >