Make your own free website on Tripod.com

InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InstantDB: File absolute path


Peter,

Your suggestion is the solution I am looking for. Basically
I want to use an enviroment variables to set-up
the VM execution so that I can do the following:

SET %idb_path%=/my/dir
java -Didb.path.tables=%idb_path%/tables -Didb.path.tmp=%idb_path%/tmp ...

and then have entries in the .prp file:

tablePath=$idb.path.tables
tmpPath=$idb.path.tmp

Thanx.
Hugo.

----- Original Message -----
From: "Peter Hearty" <peter.hearty@lutris.com>
To: <instantDB@enhydra.org>
Sent: Wednesday, November 08, 2000 5:10 PM
Subject: RE: InstantDB: File absolute path


> Hugo
>
> I haven't tried what you suggest, but I don't *think* it would work. I
could
> be wrong though, so give it a go. What you could do instead is define a
> series of properties in the java command line:
>
> java -Didb.path.tables=/my/dir/tables -Dfoobar=/tmp ...
>
> and then have entries in the .prp file:
>
> tablePath=$idb.path.tables
> tmpPath=$foorbar
>
> Don't know if that's any help though.
>
> Regards
>
> Peter Hearty
> Lutris Technologies UK
>
>
> -----Original Message-----
> From: owner-instantDB@enhydra.org [mailto:owner-instantDB@enhydra.org]On
> Behalf Of Hugo Ferreira
> Sent: 08 November 2000 14:37
> To: instantDB@enhydra.org
> Subject: Re: InstantDB: File absolute path
>
>
> Hi,
>
> I've figured it out. I forgot to set relativeToProperties to 0. Sorry.
>
> I would like to know: is it possible to use the $user.dir for example
> and append to it additional paths i.e:
> $user.dir=my/dir
> tablePath=my/dir/tables
>
> so that:
>
> tablePath=$user.dir/tables is the same as "my/dir/tables" ?
>
> Thanx.
> Hugo F.
>
> ----- Original Message -----
> From: "Hugo Ferreira" <hmf@inescporto.pt>
> To: <instantdb@enhydra.org>
> Sent: Wednesday, November 08, 2000 2:07 PM
> Subject: InstantDB: File absolute path
>
>
> > Hi,
> >
> > I have attempted to use an absolute path as exemplified in the end of
this
> > message.
> > When I run the application, I get the following excpetion:
> >
> > Enhydra InstantDB - Version 3.21
> > The Initial Developer of the Original Code is Lutris Technologies Inc.
> > Portions created by Lutris are Copyright (C) 1997-2000 Lutris
> Technologies,
> > Inc.
> > All Rights Reserved.
> > java.sql.SQLException: IO problem opening file:
> > C:\WINNT\Profiles\hugof\D:\Damascos\WfBB\database\tables
> > java.io.IOException: The filename, directory name, or volume label
syntax
> is
> > incorrect
> >  at
org.enhydra.instantdb.jdbc.idbConnection.<init>(idbConnection.java:88)
> >  at org.enhydra.instantdb.jdbc.idbDriver.connect(idbDriver.java:40)
> >  at java.sql.DriverManager.getConnection(DriverManager.java:457)
> >  at java.sql.DriverManager.getConnection(DriverManager.java:159)
> >  at SystemUtilities.DBWriter.<init>(DBWriter.java:59)
> >  at SystemUtilities.DBWriter.main(DBWriter.java:158)
> >
> > Anyone know where my mistake is?
> > TIA.
> >
> > *.prp file :
> > --------------
> > !
> > ! Path where index tables are held. Can be absolute or relative
> > ! to the properties file. Defaults to tablePath.
> > !
> > indexPath=D:/Damascos/WfBB/database/indexes
> > !
> > ! Path where system tables are held. Can be absolute or relative to
> > ! the properties file. Defaults to tablePath.
> > !
> > systemPath=D:/Damascos/WfBB/database/system
> > !
> > ! Path where database tables are held. Can be absolute or relative
> > ! to the properties file. Defaults to "current" directory.
> > !
> > tablePath=D:/Damascos/WfBB/database/tables
> > !
> > ! Path where results set tables are held. Can be absolute or relative
> > ! to the properties file. Defaults to tablePath.
> > !
> > tmpPath=D:/Damascos/WfBB/database/tmp
> >
> >
>
> --------------------------------------------------------------------------
> ---
> > To unsubscribe from this mailing list, send email to
majordomo@enhydra.org
> > with the text "unsubscribe instantdb" in the body of the email.
> > If you have other questions regarding this mailing list, send email to
> > the list admin at owner-instantdb@enhydra.org.
> >
>
> --------------------------------------------------------------------------
--
> -
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
>
>
> --------------------------------------------------------------------------
---
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.
>

-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.