java - how to use excludesfile/includesfile in ant zip task -


i need specify list of specific files exclud when try excludesfile="file1, file2" error executing task saying:

c:\users.....\desktop\testproject\project.build.xml:49: excludesfile c:\users......\desktop\testproject\file1, file2 not found.

here code:

<target name="jar" depends="common.jar">     <zip          destfile="${jar.build.dir}/some-jar.jar"         basedir="${base.dir}"         includes="src/**,gradle/**"         excludesfile="file1,file2">     </zip> </target> 

excludesfile used specify file containing list of files exclude in zip process (each on separate line). specify list comma (or space) separated files, use excludes parameter. eg:

excludes="file1,file2" 

Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -