ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Vernum <>
Subject RE: classes not going where expected
Date Tue, 27 Feb 2001 01:00:01 GMT
> I have a package,  com.foobar.AntTest
> when I compile the java files in the
> directory of the same  name, I would
> expect the class files to appear there,
> since I have my 'srcdir="."' and
> "destdir="."' as shown in the below
> compile target,

Well, that's a recipe for disaster, but to each his own.

> but instead a sub-directory is created
> com/foobar/AntTest

Which is what is supposed to happen.
class files are laid out in a directory structure
 representing their package layout.
That's how java is suppoed to work.

> How can I get the class file to be compiled in
> the directory I am in, which is  classpath
> directory with it creating a sub-directory.

I'm not sure you can, neither to I understand why
 you would want to.

View raw message