Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Using Eclipse on vfat partion
Using Eclipse on vfat partion [message #299346] Wed, 15 February 2006 13:33 Go to next message
Eclipse UserFriend
Originally posted by: mcbain.imada.sdu.dk

I am currently using Eclipse 3.1 on my gentoo installed laptop, but i'm
having a strange problem:

I wanted to share the workspace location between my Eclipse running on the
windows partition and the Eclipse running on my linux partition - i've
created a common fat32 partition but OS's are able to see and access
without problems.
However, whenever i want to create a new project using Eclipse in linux it
seems to make a mess of the casing of files for my project - that is,
normally alle Java classes should be with first letter in uppercase,
however when creating it, it seems as if somethings goes wrong as the file
is created with the first letter in lowercase.

I've tested using both nautilus, xterm and a simple javaprogram i've
written myself, that this fat32 partition (mounted as VFAT) does indeed
support different cases for any filename. And also in windows there is no
problem using my fat32 partition as a workspace for eclipse as it creates
the java files with the right casing.

Any help on this issue would be appriciated.

Kind regard,
Torsten Christiansen.
Re: Using Eclipse on vfat partion [message #299351 is a reply to message #299346] Wed, 15 February 2006 14:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vinusemail.gmail.com

Hi Torsten
Can u please show me the command used to mount the fat system on linux.
I mean the options used with the mount command

- Regards
Vinu

Torsten Christiansen wrote:
> I am currently using Eclipse 3.1 on my gentoo installed laptop, but i'm
> having a strange problem:
>
> I wanted to share the workspace location between my Eclipse running on
> the windows partition and the Eclipse running on my linux partition -
> i've created a common fat32 partition but OS's are able to see and
> access without problems.
> However, whenever i want to create a new project using Eclipse in linux
> it seems to make a mess of the casing of files for my project - that is,
> normally alle Java classes should be with first letter in uppercase,
> however when creating it, it seems as if somethings goes wrong as the
> file is created with the first letter in lowercase.
>
> I've tested using both nautilus, xterm and a simple javaprogram i've
> written myself, that this fat32 partition (mounted as VFAT) does indeed
> support different cases for any filename. And also in windows there is
> no problem using my fat32 partition as a workspace for eclipse as it
> creates the java files with the right casing.
>
> Any help on this issue would be appriciated.
>
> Kind regard,
> Torsten Christiansen.
>

--
.........................................

Vinu Varghese
www.x-minds.org
Re: Using Eclipse on vfat partion [message #299357 is a reply to message #299346] Wed, 15 February 2006 14:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

I'm not sure if the mount command for the partition on linux specifies whether it's case-aware or not, and is doing the conversion on your behalf.

Can you replicate creating a file with another editor (say, vi/pico) and saving it to that mounted FS with a mixture of upper/lower case letters?

There's other documentation on the subject

http://mail-index.netbsd.org/netbsd-users/2005/01/12/0010.ht ml

but will be specific to your distribution. My advice is to look at the options (-o) that you can specify with the mount command; it might be defaulting to just FAT support and using lowercase letters at the OS level, despite Eclipse asking for the right name.

In any case, this sounds like a linux config issue rather tahn Eclipse per se.

Alex.
Re: Using Eclipse on vfat partion [message #299362 is a reply to message #299357] Wed, 15 February 2006 16:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mcbain.imada.sdu.dk

Alex Blewitt wrote:

> I'm not sure if the mount command for the partition on linux specifies
whether it's case-aware or not, and is doing the conversion on your behalf.

> Can you replicate creating a file with another editor (say, vi/pico) and
saving it to that mounted FS with a mixture of upper/lower case letters?

> There's other documentation on the subject

> http://mail-index.netbsd.org/netbsd-users/2005/01/12/0010.ht ml

> but will be specific to your distribution. My advice is to look at the
options (-o) that you can specify with the mount command; it might be
defaulting to just FAT support and using lowercase letters at the OS level,
despite Eclipse asking for the right name.

> In any case, this sounds like a linux config issue rather tahn Eclipse per
se.

> Alex.

About the mount command i've been looking through the man pages, but
apparently nothing is stated about this issue/feature.

If i'm using gedit, vim or any other program for that matter (as i wrote
i've also created my own small java-program that creates a file with mixed
lower-/uppercase characters.

Currently my "fstab" has the options user,exec,noatime and i mount i
manually with my everyday user profile in linux.

So to be honest i'm quite baffled about this problem, thinking that maybe
eclipse creates the file in lowercase letter and then on a refresh or
something tries to make the files first letter uppercase?

Anyways, hope you can still help me out.

Torsten.
Re: Using Eclipse on vfat partion [message #299368 is a reply to message #299362] Wed, 15 February 2006 17:41 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

You'd need to compare like-for-like. For example, if you create a file called Test.java in Eclipse, and a file called Test.java in vim, and then write both of them (different directories, obviously), what does it say in the window?

It's possible that there's an issue if the extension is greater than 3 characters, or if the first letter begins with a capital letter then it's decapitalised.

I don't see how Eclipse could be doing anything else, unless there's some bug in the implementation of (say) java.nio* on your machine.

There were issues reported in the threads regarding problems with UTF-8 character set names (and/or documents) and the vfat mount, but I don't know if it might apply to you or not.

What I can suggest is that you look at using Eclipse on a different partition, and then use a tool like 'rsync' to keep the two in sync with each other. Or it might be an issue like resolving names with getAbsolutePath() of the File that causes the names to be lowercased. I've seen problems with getAbsolutePath and getCanonicalPath on other environments, and it might just be that's where the bug is (which is why your other Java app doesn't exhibit the problem).

It might be worth filing a bug on Eclipse with as much information (what version of linux, what version of glibc, which mount type (vfat/msdos/...) is being used and so forth. I doubt that it's likely to be a bug with Eclipse but at least if you report it there (and someone else verifies the problem with a different version of Linux) someone might be aware of the problem.

I don't have access to a Linux box these days, so I can't do any furher investigation myself. Sorry I couldn't be of more help.

Alex.
Previous Topic:Is it possible to let Editor choose which Content Type be used?
Next Topic:update manager and proxy authentication
Goto Forum:
  


Current Time: Sat Jun 15 06:20:46 GMT 2024

Powered by FUDForum. Page generated in 0.05392 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top