You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Eugene Voytitsky <vi...@sunbay.com> on 2002/06/03 15:55:04 UTC

Hello All,

Nested element <include> is used by <fileset>, <zipfileset>,
<patternset> etc...

Value of <include>'s attribute 'name' formally defined as pattern
actually may be one of the following:

*pattern describing set of files (will call this set as 'result-set')
(attribute's value contains at least one wild-card char)
Result-set may be empty, may contain single file or multiple files.

*full specified filename
(attribute's value contains NO wild-card chars)
Result-set in this case may be empty or may contain single file only.

Does anyone agree with my opinion that would be useful
to have optional <include>'s attribute 'whenempty="fail"'?

If it presents and <include>'s result-set calculated to empty set
then build is failed
and message like "File matched against _pattern_ not found" displayed.

I'm open to discussion :)

Thanks in advance.

-- 
Best regards,
Eugene Voytitsky                          mailto:viy@sunbay.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>