Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358748 - Provide way to name destination p2 repos after mirroring
Summary: Provide way to name destination p2 repos after mirroring
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Jan Sievers CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-23 12:47 EDT by Nick Boldt CLA
Modified: 2021-04-28 16:54 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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