You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by sebb <se...@gmail.com> on 2005/10/02 04:35:10 UTC
List (expand) the contents of a patternset to a file
Assume I have the following:
<patternset id="abc">
<include name="*.java"/>
<exclude name="Test*.java"/>
</patternset>
I'd like to create a file containing all the files that match the
patternset, one per line.
Is this possible? Or would I need to create a new task?
I'd like to use this to automate the checking of patternsets to make
sure their coverage is correct.
S.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: List (expand) the contents of a patternset to a file
Posted by sebb <se...@gmail.com>.
Thanks.
Found I also needed <fileset> and <replace>.
S.
On 02/10/05, Jeffrey E Care <ca...@us.ibm.com> wrote:
> <pathconvert> + <echo>
>
> Implementation left as an exercise for the reader.
>
> --
> Jeffrey E. Care (carej@us.ibm.com)
> WebSphere v7 Release Engineer
> WebSphere Build Tooling Lead (Project Mantis)
>
>
> sebb <se...@gmail.com> wrote on 10/01/2005 10:35:10 PM:
>
> > Assume I have the following:
> >
> > <patternset id="abc">
> > <include name="*.java"/>
> > <exclude name="Test*.java"/>
> > </patternset>
> >
> > I'd like to create a file containing all the files that match the
> > patternset, one per line.
> >
> > Is this possible? Or would I need to create a new task?
> >
> > I'd like to use this to automate the checking of patternsets to make
> > sure their coverage is correct.
> >
> > S.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: List (expand) the contents of a patternset to a file
Posted by Jeffrey E Care <ca...@us.ibm.com>.
<pathconvert> + <echo>
Implementation left as an exercise for the reader.
--
Jeffrey E. Care (carej@us.ibm.com)
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
sebb <se...@gmail.com> wrote on 10/01/2005 10:35:10 PM:
> Assume I have the following:
>
> <patternset id="abc">
> <include name="*.java"/>
> <exclude name="Test*.java"/>
> </patternset>
>
> I'd like to create a file containing all the files that match the
> patternset, one per line.
>
> Is this possible? Or would I need to create a new task?
>
> I'd like to use this to automate the checking of patternsets to make
> sure their coverage is correct.
>
> S.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>