ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Solofnenko <A.Solofne...@mdl.com>
Subject RE: Any chance for fileset arithmetic?
Date Tue, 29 Jul 2003 15:19:31 GMT
Hello Stefan,

  I actually meant that mappers inside filesets would rename files in the
filesets. I need something like:

<fileset id="client.fileset">
  <fileset dir="build/docs" prefix="wwwroot/docs"/>
  <fileset dir="build/lib1" prefix="subproduct1/lib"/>
  <fileset dir="dev_docs/client_readme.txt" path="readme.txt"/>
  <fileset dir="dev_docs/docs" includes="**/*.client.html">
    <mapper type="glob" from="*.client.html" to="*.html"/>
  </fileset>
  <fileset refid="component1.client-fs"/>
</fileset>


Right now I have to execute <copy> every time I need a complex fileset.

- Alexey.

--
{ http://trelony.cjb.net/ } Alexey N. Solofnenko
Pleasant Hill, CA (GMT-8 usually)



-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org] 
Sent: Tuesday, July 29, 2003 7:22 AM
To: dev@ant.apache.org
Subject: Re: Any chance for fileset arithmetic?

On Fri, 25 Jul 2003, Alexey Solofnenko <A.Solofnenko@mdl.com> wrote:

>   Would it be possible to add fileset joining, subtraction,

This is already possible, if you use selectors instead of
include/exclude children.

>   file renaming/mapping

Every time anybody proposes to allow nested <mapper>s in <fileset>,
they seem to mean something different.

What should

<fileset dir="." includes="**/*.java">
  <mapper type="glob" from="*.java" to="*.class"/>
</fileset>

be?

A set of the (potentially non-existant) files that I get when I
replace .java with .class in the names of the existing files?

A set of the (potentially non-existant) files that I get when I
replace .java with .class in the names of the existing files, but only
those that really do not exist or are older than the corresponding
class files?

Something else?

>   and selectors into fileset itself?

Are there since selectors are part of Ant.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message