On 5/26/05, Gilles Bayon <[EMAIL PROTECTED]> wrote:
> In an Asp.NET project the application root is the wwwroot and for a
> console/windows the application root is 
> the bin/debug or bin/release 
> if your project is organized as 
> AspNetProject 
>  
>       /bin 
>       /Resources/Query 
>      /sqlMap.config 
>   
> ConsoleprojectRoot 
>       /bin/debug/sqlMap.config 
>       /Resources/Query 
> So, if you want to use the same access to your mapping file, you must define
> a $environ$ variable 
> and use resource="$environ$/Resources/Query/properties.xml"
> with $environ$="" for Asp.NET 
> and $environ$="/bin/debug" for testing 
>   
> Hope was clear.

Yes, except that for a library project, the setting qouls vw "../"../"
because we want to get back to the project root. (Or, I expect, "../"
if we weren't in debug mode.)

For the ASP.NET project, I set it to "./"

As to the properties resources, is there a reason why we can't have
more than one?

We had one already that we were using to manage the production versus
development settings. I tried to add another, but no joy :(

Of course, this would be more useful if the variables defined in one
file could be used in another, like

        <properties>
          <resource>sqlmap-config.xml</resource>
          <resource>${root}/Resources/Query/database.xml</resource>
        </properties>

As always, thanks for the quick response, Gilles. :)

-Ted

Reply via email to