Attempt to simplify MacOS build for codesign to succeed
<copy todir="${mac.webapp.dir}">
<fileset dir="${webapp.dir}">
<include name="**/*"/>
+ <exclude name="**/test-output/**"/>
<exclude name="WEB-INF/classes/**"/>
<exclude name="WEB-INF/lib-local/**"/>
<exclude name="WEB-INF/lib-local-src/**"/>
<arg line="-r"/>
<arg line="&quot;${mac.build.directory}/OpenRefine.app/Contents/PlugIns/JRE/Contents/Home/jre/man&quot;"/>
</exec>
+ <!-- remove JRE licenses folder, cannot be signed -->
+ <exec dir="${project.build.directory}" os="Mac OS X" executable="rm">
+ <arg line="-r"/>
+ <arg line="&quot;${mac.build.directory}/OpenRefine.app/Contents/PlugIns/JRE/Contents/Home/jre/legal&quot;"/>
+ </exec>
<!-- Codesign JRE -->
<exec dir="${project.build.directory}" os="Mac OS X" executable="codesign">
