ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Ant task and dirset/fileset
Date Tue, 25 Mar 2003 21:50:25 GMT
Yes ;-) Me, and other people too. There is in Ant's BugZilla one task called
<subant> that was recently added to the HEAD (slightly modified) on an
experimental basis, and there's also a patch to <ant> along the same lines.
There has been quite a bit of discussion about both (one vs. the other even)
on ant-dev as well. You should look it all up.

As the original author and user of <subant>, I can tell you it's working
just fine for me. Here's one of my build files, for example. Should be
familiar to Makefile writers (it does build C++ libraries after all ;-)

<?xml version="1.0"?>

<project name="Gocad" default="build">

  <taskdef resource="com/lgc/buildmagic/" />
  <typedef resource="com/lgc/buildmagic/" />

  <buildpath id="buildpath">
    <pathelement location="src/lib/utils/utils.xml" />
    <pathelement location="src/lib/math/math.xml" />
    <pathelement location="src/lib/geobase/geobase.xml" />
    <pathelement location="src/lib/lines/lines.xml" />
    <pathelement location="src/lib/surfaces/surfaces.xml" />
    <pathelement location="src/lib/volumes/volumes.xml" />
    <pathelement location="src/lib/tgobjs/tgobjs.xml" />
    <pathelement location="src/lib/appli/appli.xml" />
    <pathelement location="src/lib/ascii/ascii.xml" />
    <pathelement location="src/lib/archive/archive.xml" />
    <pathelement location="src/lib/gapi/gapi.xml" />

  <target name="clean">
    <subant buildpathref="buildpath" />

  <target name="build">
    <subant buildpathref="buildpath" />

  <target name="reversion">
    <subant buildpathref="buildpath" />

  <target name="rebuild">
    <subant buildpathref="buildpath" />


-----Original Message-----
From: Gus Heck [] 
Sent: Tuesday, March 25, 2003 3:34 PM
Subject: Ant task and dirset/fileset

Has anyone ever thought about or tried to make the ant task accept a 
fileset or dirset? I have a use for such functionality but, before I go 
writing myself a custom version, or writing a patch, I thought I might 
ask if this has been tried, is being tried, or has be explicitly decided 


View raw message