Welcome
Welcome to mbttigrisorg

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

MBT fails when trying to run on different drive in cygwin.

Found a bug? Suspicious behavior? This is the forum to submit bugs.

MBT fails when trying to run on different drive in cygwin.

Postby Josip on Tue Jun 02, 2009 9:23 am

If you want to run merge on a files/folder that is located on an other drive, MBT will fail, claiming that it can't find a valid file.

JUDA@VBYJUDA /cygdrive/c/MBT/mbt
$ java -jar mbt.jar merge -f /cygdrive/v/AO_Internet/Fabriken/Test/Sport/Stryktipset

'/cygdrive/v/AO_Internet/Fabriken/Test/Sport/Stryktipset' is not a file or a directory. Please specify a valid .graphml file or a directory containing .graphml files
Type 'java -jar mbt.jar help merge' for help.


Coping the files to the same drive will work. (/cygdrive/c/MBT/model/Stryktipset)
JUDA@VBYJUDA /cygdrive/c/MBT/mbt
$ java -jar mbt.jar merge -f ../model/Stryktipset
Works fine!

Best regards
Josip Udovcic
Svenska Spel
Josip
 
Posts: 2
Joined: Tue Jun 02, 2009 9:13 am

Re: MBT fails when trying to run on different drive in cygwin.

Postby KristianKarl on Wed Jun 03, 2009 8:50 pm

I think, maybe, that this is related to how cygwin handles file names and paths.
MBT is using java.io.File.isDirectory to determine if the given path is a folder or not. This seams not to work under Cygwin and mapped drives. I googled some, but found no obvious links related to this specific topic.
KristianKarl
Site Admin
 
Posts: 38
Joined: Fri May 15, 2009 1:07 pm

Re: MBT fails when trying to run on different drive in cygwin.

Postby KristianKarl on Fri Jun 05, 2009 11:54 am

Try the follwing, to see if it works:

$ java -jar mbt.jar merge -f v:\\AO_Internet\\Fabriken\\Test\\Sport\\Stryktipset
KristianKarl
Site Admin
 
Posts: 38
Joined: Fri May 15, 2009 1:07 pm

Re: MBT fails when trying to run on different drive in cygwin.

Postby Josip on Thu Jun 11, 2009 8:58 am

It works!

Thanks!

Rgrds
Josip Udovcic
Svenska Spel

KristianKarl wrote:Try the follwing, to see if it works:

$ java -jar mbt.jar merge -f v:\\AO_Internet\\Fabriken\\Test\\Sport\\Stryktipset
Josip
 
Posts: 2
Joined: Tue Jun 02, 2009 9:13 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests

cron