blob: 882c16ebdeca7e70d8f77bbe44a557d9aab11e71 [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">
<property name="tmpsite" value="${buildDirectory}/tmpsite" />
<!-- 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" />
<delete dir="{tmpsite}" verbose="true" />
<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" />
<delete dir="{tmpsite}" verbose="true" />
</target>
</project>