ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Erik Husby" <>
Subject Re: Scaling to large projects
Date Mon, 03 Feb 2003 18:36:45 GMT
The simplest way to scale to a large project is to organize your directories in a fashion 
similar to this:


   - src
      (all package sources)

   - classes
      (where all class files will end up.)

   - lib
       (where all third party jar files live)

   - deploy
       ( where you put the deployable files )

Then your build.xml can contain things like:
<path id="base.path">
  <pathelement location="./classes"/>
  <fileset dir="./lib">
   <include name="**/*.jar"/>

<javac destdir="./classes">
 <classpath refid="base.path"/>

Javac will compile everything under the source directory. You are free to add packages and
classes as you see fit.

Erik Husby

View raw message