I use
<zipfileset ..><excludesfile name="D:\SW\abc.h"/>..</zipfileset>
to exclude this file while zipping
Problem is if this file does not exist, Ant throws error.
Are there any ignore settings?
I have many <excludesfile> tag
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
excludesfileelement or attribute is intended to specify the name of a file, each line of which is taken to be an exclude pattern. See the documentation for PatternSet.I think you are incorrectly using the attribute to specify the names of files you want to exclude literally, rather than in the named excludes file itself.
One solution would be to list all the files you require to be excluded from your zip in a file (each on a new line) and give the name of this file in the
excludesfileattribute or element of yourzipfileset.Alternatively, you could use a comma or space separated list of the files in the
excludesattribute. Or you could replace your multipleexcludesfileelements with multipleexcludeelements.