Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] p2.mirrorsURL property - how do different projects handle this?

Am 17.02.2012 21:22, schrieb Jeff Johnston:
> Do any other projects out there have any insights on how to do this more 
> efficiently/automatically?

We use the p2 mirror Ant task. It allows to specify a template
repository using the "format" parameter.


<!-- generate template with proper mirror urls -->
<copy
  file=".../template-artifacts.xml"
  tofile="${buildDirectory}/publishRepoTemplate/artifacts.xml">
  <filterset>
	...
  </filterset>
</copy>

<!-- mirror to target (but only the bits that really changed) -->
<p2.mirror ...>
  <source location="..."/>
  <destination .../>
  <destination
    kind="artifact"
	compressed="true"
	name="${p2.repo.name.prefix} (Build ${buildId})"
	location="..."
	append="true"
	format="${templateRepoUrl}"/>
  ...
</p2.mirror>

-Gunnar


Back to the top