| [platform-update-dev] Errors when using the standalone updater to mirror Callisto |
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
Attachment:
build.properties
Description: build.properties
<project name="MSDE Update Sites Master Build" default="none" basedir=".">
<property file="build.properties"/>
<property name="eclipse.main.class" value="org.eclipse.core.launcher.Main"/>
<property name="eclipse.application" value="org.eclipse.update.core.standaloneUpdate"/>
<property name="eclipse.application.command" value="mirror"/>
<path id="updater.classpath">
<pathelement location="${eclipse.home}/startup.jar"/>
</path>
<target name="none">
<echo message="No default target defined. Please run one of the public targets."/>
</target>
<target name="mirror-eclipse" description="Creates a mirror of the Eclipse 3.2 update site" >
<standalone-updater
remote.site.url="${eclipse.remote.site.url}"
mirror.site.dir="${eclipse.mirror.site.dir}"
mirror.site.url="${eclipse.mirror.site.url}"/>
</target>
<target name="mirror-callisto" description="Creates a mirror of the Callisto Discovery update site">
<standalone-updater
remote.site.url="${callisto.remote.site.url}"
mirror.site.dir="${callisto.mirror.site.dir}"
mirror.site.url="${callisto.mirror.site.url}"/>
</target>
<target name="mirror-checkstyle" description="Creates a mirror of the Checkstyle update site" >
<standalone-updater
remote.site.url="${checkstyle.remote.site.url}"
mirror.site.dir="${checkstyle.mirror.site.dir}"
mirror.site.url="${checkstyle.mirror.site.url}"/>
</target>
<macrodef name="standalone-updater" description="Uses eclipse standalone updater to mirror an external update site">
<attribute name="remote.site.url" description="The url of the remote site to be mirrored (base dir containing site.xml)"/>
<attribute name="mirror.site.dir" description="Local directory where the mirror will be created"/>
<attribute name="mirror.site.url" description="URL of the mirror site (used in the generated update policy.xml file)"/>
<sequential>
<echo message="Mirroring remote site:"/>
<echo message="remote.site.url: @{remote.site.url}"/>
<echo message="mirror.site.dir: @{mirror.site.dir}"/>
<echo message="mirror.site.url: @{mirror.site.url}"/>
<mkdir dir="@{mirror.site.dir}" taskname="create-mirror-dir" />
<java classname="${eclipse.main.class}"
fork="true"
classpathref="updater.classpath"
failonerror="true">
<sysproperty key="proxyHost" value="${proxy.host}"/>
<sysproperty key="proxyPort" value="${proxy.port}"/>
<arg line="-data ${basedir} -application ${eclipse.application} -command ${eclipse.application.command} -from @{remote.site.url} -to @{mirror.site.dir} -mirrorURL @{mirror.site.url}"/>
</java>
<echo message="Remote site mirrored!"/>
</sequential>
</macrodef>
</project>Attachment:
mirror_callisto_upd_3.1.log
Description: mirror_callisto_upd_3.1.log
Attachment:
mirror_callisto_upd_3.2.log
Description: mirror_callisto_upd_3.2.log