<?xml version="1.0" encoding="UTF-8"?>
<project name="swingall" default="all" basedir=".">
  <target name="all">
    <subant target="${all}">
      <fileset dir="." casesensitive="yes">
        <filename name=".hg/*" negate="true"/>
        <filename name="*/build.xml"/>
      </fileset>
    </subant>
  </target>
</project>

<?xml version="1.0" encoding="UTF-8"?>
<!-- $ ant -f all.xml -Dall=package -->
<project name="swingall" default="all" basedir=".">
  <target name="all">
    <subant target="${all}">
      <fileset dir="." casesensitive="yes">
        <filename name=".svn/*" negate="true"/>
        <filename name=".hg/*"  negate="true"/>
        <filename name="*~/*"   negate="true"/>
        <filename name="*/build.xml"/>
      </fileset>
    </subant>
  </target>
</project>

Add commnet: ant command example
Add commnet: ant command example