You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "oliver.maven" <ol...@gmail.com> on 2008/04/24 17:25:17 UTC

where to put the 'data' directory for hsqldb?

hi, 
i am a maven newbie, i want use hsqldb as my development database,normally it need a directroy to store the related files
where to put this directory within the maven's directory structure? thanks a lot!




oliver.maven
2008-04-24

RE: RE: where to put the 'data' directory for hsqldb?

Posted by Thomas Darbois <Th...@edifixio.com>.
You should try to put it in src/main/resources/data and then access it with  the same descriptor ("jdbc:hsqldb:data/db-name")

Tomas Darbois
Edifixio Grenoble - Projet ScorWare
04 76 29 89 27
thomas.darbois@edifixio.com
-----Message d'origine-----
De : oliver.maven [mailto:oliver.maven@gmail.com]
Envoyé : jeudi 24 avril 2008 18:16
À : Maven Users List
Objet : Re: RE: where to put the 'data' directory for hsqldb?

i am not doing unit tests for now , i only want to run the application with hsqldb configured.Previously i put a directory called "data" in my project's
root directory,and used "jdbc:hsqldb:data/db-name" url to access dabtabse,so where to put the "data" directory in maven, so that the "jdbc:hsqldb:data/ db-name" still can work,thank you so much!




oliver.maven
2008-04-25



发件人: J鰎g_Schaible
发送时间: 2008-04-24 23:46:34
收件人: Maven Users List
抄送:
主题: RE: where to put the 'data' directory for hsqldb?

Hi Oliver,

oliver.maven wrote:
> hi,
> i am a maven newbie, i want use hsqldb as my development
> database,normally it need a directroy to store the related files
> where to put this directory within the maven's directory structure?
> thanks a lot!

there's no defined place. However, what are you doing with it? E.g. if you need it for unit tests you may keep the files somewhere like src/test/db and copy the complete directory over to target/db (possibly in yout setUp) and point HSQLDB to that place. That way you always stgart with a defined content and you do not modify the files you're keeping in your version control.

- J鰎g

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

Re: RE: where to put the 'data' directory for hsqldb?

Posted by "oliver.maven" <ol...@gmail.com>.
i am not doing unit tests for now , i only want to run the application with hsqldb configured.Previously i put a directory called "data" in my project's
root directory,and used "jdbc:hsqldb:data/db-name" url to access dabtabse,so where to put the "data" directory in maven, so that the "jdbc:hsqldb:data/ db-name" still can work,thank you so much!




oliver.maven
2008-04-25



�����ˣ� J�rg_Schaible
����ʱ�䣺 2008-04-24 23:46:34
�ռ��ˣ� Maven Users List
���ͣ� 
���⣺ RE: where to put the 'data' directory for hsqldb?

Hi Oliver,

oliver.maven wrote:
> hi,
> i am a maven newbie, i want use hsqldb as my development
> database,normally it need a directroy to store the related files
> where to put this directory within the maven's directory structure?
> thanks a lot! 

there's no defined place. However, what are you doing with it? E.g. if you need it for unit tests you may keep the files somewhere like src/test/db and copy the complete directory over to target/db (possibly in yout setUp) and point HSQLDB to that place. That way you always stgart with a defined content and you do not modify the files you're keeping in your version control.

- J�rg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org

RE: where to put the 'data' directory for hsqldb?

Posted by Jörg Schaible <Jo...@Elsag-Solutions.com>.
Hi Oliver,

oliver.maven wrote:
> hi,
> i am a maven newbie, i want use hsqldb as my development
> database,normally it need a directroy to store the related files
> where to put this directory within the maven's directory structure?
> thanks a lot! 

there's no defined place. However, what are you doing with it? E.g. if you need it for unit tests you may keep the files somewhere like src/test/db and copy the complete directory over to target/db (possibly in yout setUp) and point HSQLDB to that place. That way you always stgart with a defined content and you do not modify the files you're keeping in your version control.

- Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org