This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: spaces in filenames/paths


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]