blob: df8b0797d9768f570db94635f19353a83048fae0 [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}" failonerror="false"/>
<mkdir dir="${tmpsite}/unpacked/eclipse/features" />
<mkdir dir="${tmpsite}/unpacked/eclipse/plugins" />
<exec executable="unzip" dir="${buildDirectory}/${buildLabel}">
<arg line="-q -o ${archiveName} -d ${tmpsite}" />
</exec>
<!-- 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 -->
<exec executable="zip" dir="${tmpsite}/unpacked">
<arg line="-q ${buildDirectory}/${buildLabel}/${archiveName} -r eclipse" />
</exec>
</target>
</project>