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
Post a Comment