ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Erik Husby" <mhu...@genome.wi.mit.edu>
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:

project

   build.xml
   - 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"/>
  </fileset>
</path>

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


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

Erik Husby



Mime
View raw message