blob: 567bbf016efcd0bff731bae67f7c9b616aa9d621 [file] [log] [blame]
<project>
<target name="createChecksums">
<mkdir dir="${postingDirectory}/${buildLabel}/checksum" />
<checksum file="${postingDirectory}/${buildLabel}/${archiveName}"
property="md5" />
<echo message="${md5} *${archiveName}"
file="${postingDirectory}/${buildLabel}/checksum/${archiveName}.md5" />
<echo message="${md5}"
file="${postingDirectory}/${buildLabel}/checksum/${archiveName}.md5antformat" />
</target>
<target name="unpackUpdateJarsAndCreateZippedPackages">
<!--Note: we use this odd "tmpsite+archiveName" to make unique directories, since
can not be deleted from ant.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=142926
-->
<property name="tmpsite" value="${buildDirectory}/tmpsite-${archiveName}" />
<!-- temporary. Copy to be able to do side-by-side comparisons -->
<mkdir dir="${buildDirectory}/${buildLabel}/backuporiginalzips" />
<copy file="${buildDirectory}/${buildLabel}/${archiveName}"
todir="${buildDirectory}/${buildLabel}/backuporiginalzips" />
<!-- I do not think these are any longer needed -->
<mkdir dir="${tmpsite}/unpacked/eclipse/features" />
<mkdir dir="${tmpsite}/unpacked/eclipse/plugins" />
<unzip dest="${tmpsite}" src="${buildDirectory}/${buildLabel}/${archiveName}" />
<!-- condition jars here -->
<!-- for modularity, pack200 done here (though, could result in duplicate processing) -->
<!-- copy all update jars to a common update site directory -->
<mkdir dir="${postingDirectory}/${buildLabel}/updateSite" />
<copy todir="${postingDirectory}/${buildLabel}/updateSite">
<fileset dir="${tmpsite}/eclipse">
</fileset>
</copy>
<!-- unpacks those jars that are supposed to be unpacked based on feature defintion -->
<unpackUpdateJars site="${tmpsite}/eclipse" output="${tmpsite}/unpacked/eclipse"/>
<!-- add copy of legal doc's here, product.ini, etc., before re-zipping -->
<copy todir="${tmpsite}/unpacked/eclipse">
<fileset dir="${wtp.builder.home}/rootfiles" >
</fileset>
</copy>
<!-- delete first version, which we are about to re-create -->
<delete file="${buildDirectory}/${buildLabel}/${archiveName}" />
<!-- recreate zip file now, same name, traditional content, instead of jarred content -->
<zip destfile="${buildDirectory}/${buildLabel}/${archiveName}"
basedir="${tmpsite}/unpacked" update="false" duplicate="preserve" />
<!-- try a more forcable means of deleting -->
<!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=142926 -->
<!--
<exec executable="rm" dir="${buildDirectory}">
<arg line="-fr tmpsite" />
</exec>
-->
<delete dir="tmpsite"/>
</target>
</project>