Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] mirroring p2 repository from build to another location

Hi,

I use the tycho extras mirror goal to do this - you may wish to alter
the execution phase and destination;

			<plugin>
				<groupId>org.eclipse.tycho.extras</groupId>
				<artifactId>tycho-p2-extras-plugin</artifactId>
				<executions>
					<execution>
						<phase>prepare-package</phase>
						<goals>
							<goal>mirror</goal>
						</goals>
						<configuration>
							<source>
								<!-- source repository to mirror from as a URI -->
								<repository>
									<url>${project.baseUri}/target/repository</url>
									<layout>p2</layout>
								</repository>
							</source>

							<!-- Target repository file location -->
							<destination>${project.build.directory}/../../repository</destination>

							<!-- whether to append to the target repository content -->
							<append>true</append>
						</configuration>
					</execution>
				</executions>
			</plugin>


Regards,

Simon

On 19 July 2012 10:01,  <e92-330cd@xxxxxxxxx> wrote:
> Hello,
>
> thanks for reply. I haven never used ant in my life...so i have absolutely
> no idea how the ant file should look like... neither how the appArgLine
> should look like.
>
> I just want to merge that builded p2 repository with another p2 repo. Isnt
> there any tutorial? or easier way?
>
> or i have to use that ant script:
>
> <p2.mirror source="${p2.build.repo}">
>            <destination kind="metadata" location="${p2.repo.location}"
> compressed="${p2.compress}" name="${p2.metadata.repo.name}" />
>            <destination kind="artifact" location="${p2.repo.location}"
> compressed="${p2.compress}" name="${p2.artifact.repo.name}" />
>
>            <slicingoptions includeoptional="false" />
> </p2.mirror>
>
>
> but this isnt full script , right?
>
> how to run ant  task with tycho-eclipserun-plugin without having extra ant
> file? is it possible to write the ant script into the pom.file? if yes,
> whats the correct usage?
> Many thanks
>
> David _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top