spaces in filenames/paths

Sean McNeil sean@mcneil.com
Mon Jun 14 18:26:00 GMT 2004


On Mon, 2004年06月14日 at 04:19, root wrote:
> Sean McNeil writes:
> > On Sat, 2004年06月12日 at 13:17, Michael Koch wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > > 
> > > Am Samstag, 12. Juni 2004 22:07 schrieb Sean McNeil:
> > > > I'm trying to compile Eclispe with gcj/gij and I find that ant is
> > > > having a hard time with gcj. I've used -Dbuild.compiler=gcj and
> > > > -Dbuild.compiler=jikes. jikes works fine and seems to compile
> > > > files/paths with a space in them, but gcj appears to be splitting
> > > > the args at the space and I end up getting errors.
> > > >
> > > > Is this a known issue?
> > > 
> > > I didn't knew space is a valid Character in a class name. Can you give 
> > > any example ?
> > 
> > It isn't the class name, it is a compilation path.
> > 
> > Example:
> > org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventKey.java
> > 
> > I think this is passed to gcj correctly, so I suspect that the backend
> > jc1 isn't getting it as a whole argument but as 3 in this case.
>> It's possible, but I don't think so. I think it's probably a bug elsewhere.
>> If you produce a standalone testcase I'll have a look.
>> Andrew.

Here is a simple test case:
mkdir try; cd try
mkdir "My Sources"
cat < >My\ Sources/hello.java
public class hello {
 static public void main (String argv[]) {
 System.out.println ("Hello\n");
 }
}
^D
gcj -C */*
Cheers,
Sean


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /