ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11138] - Include Tag
Date Wed, 24 Jul 2002 20:36:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11138>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11138

Include Tag





------- Additional Comments From umagesh@apache.org  2002-07-24 20:36 -------
Mahesh,
FYI, the command
find . -name "*.bat" -print | grep -v "ejb/" 
does not look into the "contents" of all the "*.bat" files.

What it does is, list all the file names that end with .bat omitting those file 
names that contain ejb/ in their *file names* and not their contents.  If the 
command was

grep -v "ejb/" `find . -name "*.bat" -print`

then this would find all *.bat files and print the lines inside the returned 
files that do not contain the word ejb/ .

So, in your case, what you want to do is
<fileset dir=".">
  <include name="**/*.bat" />
  <exclude name="**/*ejb/**/*" />
</fileset>
because your equivalent command in Makefile is *not* examining the contents of
any file.

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


Mime
View raw message