| <?xml version="1.0" encoding="UTF-8"?> |
| <project default="main"> |
| |
| |
| <target name="getDownloads"> |
| <mkdir dir="${downloadFolder}" /> |
| <mkdir dir="${downloadFolder}/toTransform" /> |
| <mkdir dir="${downloadFolder}/mylyn" /> |
| |
| <get usetimestamp="true" dest="${downloadFolder}/cdt.zip" src="http://download.eclipse.org/tools/cdt/releases/galileo/dist/cdt-master-6.0.0.zip" /> |
| <get usetimestamp="true" dest="${downloadFolder}/mylyn.zip" src="http://download.eclipse.org/tools/mylyn/update-archive/3.2.0/v20090617-0100/mylyn-3.2.0.v20090617-0100-e3.4.zip"/> |
| <get usetimestamp="true" dest="${downloadFolder}/cvs.zip" src="http://download.eclipse.org/eclipse/downloads/drops/R-3.5-200906111540/org.eclipse.cvs-p2repo-3.5.zip" /> |
| |
| <!-- we will use the platform.zip as our base, so put it separately to be transformed --> |
| <get usetimestamp="true" dest="${downloadFolder}/toTransform/platform.zip" src="http://download.eclipse.org/eclipse/downloads/drops/R-3.5-200906111540/org.eclipse.platform-p2repo-3.5.zip" /> |
| </target> |
| |
| <target name="publishMylyn"> |
| <unzip src="${downloadFolder}/mylyn.zip" dest="${downloadFolder}/mylyn" /> |
| <p2.publish.featuresAndBundles repository="${p2.build.repo}"> |
| <features dir="${downloadFolder}/mylyn/features" includes="*"/> |
| <bundles dir="${downloadFolder}/mylyn/plugins" includes="*"/> |
| </p2.publish.featuresAndBundles> |
| </target> |
| |
| <target name="main"> |
| <tstamp/> |
| <property name="timestamp" value="${DSTAMP}${TSTAMP}" /> |
| |
| <property name="downloadFolder" value="${basedir}/downloads" /> |
| <antcall target="getDownloads"/> |
| |
| <!-- mylyn is an old style update site, not a p2 repo. For best results, we publish metadata ourselves --> |
| <property name="p2.build.repo" value="file:${basedir}/buildDirectory/buildRepo"/> |
| <antcall target="publishMylyn"/> |
| |
| <property name="builder" value="${basedir}" /> |
| <ant antfile="${eclipse.pdebuild.scripts}/productBuild/productBuild.xml" /> |
| </target> |
| </project> |