Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358748

Summary: Provide way to name destination p2 repos after mirroring
Product: z_Archived Reporter: Nick Boldt <nboldt>
Component: TychoAssignee: Jan Sievers <jan.sievers>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: jan.sievers, thanh.ha
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Nick Boldt CLA 2011-09-23 12:47:51 EDT
How can I name the destination repo?

With Ant (p2.mirror task):

<property name="URL" value="http://dist.springsource.com/release/TOOLS/update/e3.7/" />
<p2.mirror>
	<repository location="file:${destination}/2.7.2.201109131000/" name="SpringIDE plugins for Eclipse 3.7" />
	< source>
		<repository location="${URL}" />
	</ source>
</p2.mirror>

With Maven, I can only set a destination path:

<destination>${project.build.directory}/2.7.2.201109131000</destination>

And while the *source* can include nested properties...

<source>
	<repository>
		<url>http://dist.springsource.com/release/TOOLS/update/e3.7</url>
		<layout>p2</layout>
	</repository>
</source>

... I can't do the same for the *destination*:

<destination>
	<repository>
		<url>${project.build.directory}/site</url>
		<layout>p2</layout>
		<name>SpringIDE plugins for eclipse 3.7</name>
	</repository>
</destination>

See also: http://wiki.eclipse.org/Talk:Tycho/Additional_Tools
Comment 1 Jan Sievers CLA 2011-09-26 03:30:00 EDT
this shouldn't be hard to do.

Feel free to provide a patch. Code is here:
https://github.com/sonatype/tycho-extras/blob/master/tycho-p2-extras-plugin/src/main/java/org/eclipse/tycho/plugins/p2/extras/MirrorMojo.java
Comment 2 Thanh Ha CLA 2013-12-17 15:56:47 EST
Gerrit patch: https://git.eclipse.org/r/19922