Hi all,
I have been using a macro definition to copy a set of files to different locations and FTP servers. But copying seems quite slow so I want to compress the bundle using 7z and copy all into FTP as one single file. Can it be done using 7z? My amcrodef is below which works:
<macrodef name="copyimages">
<attribute name="todir"/>
<sequential>
<copy todir="@{todir}" overwrite="true" failonerror="false">
<fileset dir="${build.output.dir}">
<include name="logs/*${build.id}*armv5*scan2.html"/>
<include name="logs/*${build.id}*main.ant.log"/>
<include name="logs/*${build.id}*bom.xml"/>
<include name="logs/compile/*${build.id}*.*"/>
<include name="logs/cone/*${build.id}*.*"/>
<include name="logs/post/*${build.id}*.*"/>
<include name="logs/roms/*${build.id}*.*"/>
<include name="**/*${build.id}_codescanner/**"/>
</fileset> </copy> </sequential> </macrodef>
<copyimages todir="${publish.ssdoci.dir}/${env.version}.${build.number}"/>