You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Myrna van Lunteren <m....@gmail.com> on 2006/03/13 19:56:48 UTC

q re OnlineBackupTest1...

Hi,

I noticed in passing that a few of the store tests - for example,
OnlineBackupTest1 - use hardcoded '/' in paths.
While I've not checked this, I am worrying that this test might not pass
under DOS (note, it would be find under cygwin, but not everyone may have
some such shell simulator).

Or is there some functionality in the backup tools that always want forward
slashes and translate it correctly to the operating system path separator?

Myrna

Re: q re OnlineBackupTest1...

Posted by Suresh Thalamati <su...@gmail.com>.
Hi Myrna,

Backup does not enforce any restrictions on which separator to use and
does not do any conversions. It just passes path specified directly to
to java.io.File constructors to create File object. I think  most VM's 
on Windows/MAC  understands "/"  as a name separator and internally 
convert it to correct platform specific path name.

Correct way to build paths is to use File.separator to separate the 
names in the path.

Thanks
-suresht

Myrna van Lunteren wrote:
> Hi,
>  
> I noticed in passing that a few of the store tests - for example, 
> OnlineBackupTest1 - use hardcoded '/' in paths.
> While I've not checked this, I am worrying that this test might not pass 
> under DOS (note, it would be find under cygwin, but not everyone may 
> have some such shell simulator).
>  
> Or is there some functionality in the backup tools that always want 
> forward slashes and translate it correctly to the operating system path 
> separator?
>  
> Myrna
>