ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: mirroring src directory
Date Tue, 18 Sep 2001 15:22:05 GMT
--- wrote:
> You need to have the appropriate package structure in place for your 
> classes. e.g. If there is a class BeanA in the folder 
> ${src}/beans/formbeans then you package appropriately (say
> have "package /usr/home/peter/beans/formbeans;" as the first line).
> Thereafter compilation in ant will recreate the directory structure as
> required on its own.

Just a couple of corrections:
  - A package statement uses the "dot" format, not a path format, and
    shouldn't include anything more than just the package (ie., in your
    example, no /usr/home/peter [or usr.home.peter either]).
  - If the file is declared as being part of a package, it's the compiler
    that creates the subdirs and outputs the classfiles into that subdir
    structure, based on the package, not Ant.



Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information

View raw message