You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jay Dickon Glanville <di...@gmail.com> on 2007/05/04 18:58:44 UTC

based on contents of a file?

Is there a way that I can create a fileset who's files are based on a
second file's contents?

I'm looking at a situation where I want to use the <copy> task to copy
a set of files.  These files are listed in a text file, one filename
per line.  So, I can't use a statically declared <fileset> as I don't
know the fileset's criteria.

Thanks

JDG

-- 
Jay Dickon Glanville

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


Re: based on contents of a file?

Posted by Jay Dickon Glanville <di...@gmail.com>.
Matt,

Thanks for the suggestion of using an includesfile attribute for the
<fileset> element.  Because the includesfile deals with "include
patterns", I originally dismissed it as a possible solution.  However,
now that I think about it a little more, as long as the file contains
explicit information (and not patterns), this this should work.

JDG


On 5/5/07, Matt Benson <gu...@yahoo.com> wrote:
> use the includesfile attribute?  If your files don't
> all share the same base directory, consider using a
> <files> collection (Ant 1.7).
>
> HTH,
> Matt
>
> --- Jay Dickon Glanville <di...@gmail.com>
> wrote:
>
> > Is there a way that I can create a fileset who's
> > files are based on a
> > second file's contents?
> >
> > I'm looking at a situation where I want to use the
> > <copy> task to copy
> > a set of files.  These files are listed in a text
> > file, one filename
> > per line.  So, I can't use a statically declared
> > <fileset> as I don't
> > know the fileset's criteria.
> >
> > Thanks
> >
> > JDG
> >
> > --
> > Jay Dickon Glanville
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
Jay Dickon Glanville

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


Re: based on contents of a file?

Posted by Matt Benson <gu...@yahoo.com>.
use the includesfile attribute?  If your files don't
all share the same base directory, consider using a
<files> collection (Ant 1.7).

HTH,
Matt

--- Jay Dickon Glanville <di...@gmail.com>
wrote:

> Is there a way that I can create a fileset who's
> files are based on a
> second file's contents?
> 
> I'm looking at a situation where I want to use the
> <copy> task to copy
> a set of files.  These files are listed in a text
> file, one filename
> per line.  So, I can't use a statically declared
> <fileset> as I don't
> know the fileset's criteria.
> 
> Thanks
> 
> JDG
> 
> -- 
> Jay Dickon Glanville
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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