Skip to content

Instantly share code, notes, and snippets.

@zxkane
Created July 8, 2013 07:54
Show Gist options
  • Save zxkane/5946981 to your computer and use it in GitHub Desktop.
Save zxkane/5946981 to your computer and use it in GitHub Desktop.
Use p2's ant task to mirror repository
./eclipse --launcher.suppressErrors -nosplash -data ws -application org.eclipse.ant.core.antRunner -buildfile mirror.xml
<project name="p2-mirror" basedir=".">
<property environment="env"/>
<p2.mirror source="${env.mirrorsource}">
<destination location="${env.p2_destination}" compressed="true" />
<iu id="${env.mirroriu}" version="" />
<slicingOptions includeOptional="true" includeNonGreedy="true" followStrict="true" followOnlyFilteredRequirements="false" latestVersionOnly="true" />
</p2.mirror>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment