ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <Nico.Sees...@epost.de>
Subject Re: sub-directory compilation
Date Wed, 07 Feb 2001 08:36:21 GMT

  ----- Original Message ----- 
  From: John McCormick 
  To: ant-user@jakarta.apache.org 
  Sent: Monday, February 10, 1997 5:25 AM
  Subject: sub-directory compilation


  I would like to be able to compile code (using the javac task) starting from my current
directory path and including any subdirectories, with my build.xml being in a different directory.

  Is there a way to get current directory? 

The current directory should be available as ${user.dir} inside your buildfile. So you will
get a list of files in the current directory and all subdirectories using

    <fileset dir="${user.dir}">
      <include name="*"/>
    </fileset>

Nico


Mime
View raw message