Subject | Relative directories in jdbc url |
---|---|
Author | David Warnock |
Post date | 2003-02-13T21:53:05Z |
Hi,
I work on a number of projects that are used by developers all over the
place. As such when the checkout the source they often need to change
the jdbc url to reflect the location of their .gdb file.
I wondered if a syntax would be possible in the url to signify that the
url is for localhost and relative to the current directory. The driver
would expand the path before passing onwards.
eg our projects generally have the following subdirectories
build
src
data
For example using OJB (db.apache.org) we need
dbalias="//localhost/home/david/dev/framework/contrib/contact/data/contact.gdb?lc_ctype=UNICODE_FSS"
in the xml repository. I wondered if this could be
dbalias="./data/contact.gdb?lc_ctype=UNICODE_FSS"
so that it would work for all developers.
What do you think?
Thanks
Dave
--
David Warnock, Sundayta Ltd. http://www.sundayta.com
iDocSys for Document Management. VisibleResults for Fundraising.
Development and Hosting of Web Applications and Sites.
I work on a number of projects that are used by developers all over the
place. As such when the checkout the source they often need to change
the jdbc url to reflect the location of their .gdb file.
I wondered if a syntax would be possible in the url to signify that the
url is for localhost and relative to the current directory. The driver
would expand the path before passing onwards.
eg our projects generally have the following subdirectories
build
src
data
For example using OJB (db.apache.org) we need
dbalias="//localhost/home/david/dev/framework/contrib/contact/data/contact.gdb?lc_ctype=UNICODE_FSS"
in the xml repository. I wondered if this could be
dbalias="./data/contact.gdb?lc_ctype=UNICODE_FSS"
so that it would work for all developers.
What do you think?
Thanks
Dave
--
David Warnock, Sundayta Ltd. http://www.sundayta.com
iDocSys for Document Management. VisibleResults for Fundraising.
Development and Hosting of Web Applications and Sites.