Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How put generated resources files (txt, properties...) on update site?

Thanks for the correction regarding p2 repository content types, Pascal. If I understood correctly, once mentioned in build.properties, a text file will be packaged in a jar and information about it will be recorded in the artifact repository during the build, and at install time it will be automatically deployed. Is there a way to publish a text file directly into a p2 repository, e.g. by defining it as an independent IU in p2.inf file?

By the way, I've found this article informative when trying to understand this question: http://chamibuddhika.wordpress.com/2011/05/18/installing-configuration-files-with-p2-inf-feature-installation/

/Mikhail

P.S. Should this kind of questions be asked on the p2-dev mailing list since there is no p2-user one?


----- Original Message -----
From: "Pascal Rapicault" <pascal@xxxxxxxxxxxxx>
To: "Tycho user list" <tycho-user@xxxxxxxxxxx>
Sent: Tuesday, October 16, 2012 4:02:28 PM
Subject: Re: [tycho-user] How put generated resources files (txt,	properties...) on update site?

p2 will store and download anything as long as they are in a p2 artifact.

On 2012-10-16, at 4:15 AM, Mikhail Kalkov wrote:

> Hi,
> 
> Eclipse update site is a p2 repository, which consists of three parts:
> - content.xml (or .jar, aka metadata repository)
> - artifacts.xml (or .jar, aka artifact repository)
> - OSGI bundles
> 
> I believe you cannot throw in random files into an update site, they have to be proper OSGI bundles and they have to be recorded both in the artifacts.xml and content.xml. You can, however, add a readme file if you want. Anyway, this has nothing to do with Maven or Tycho, and is a pure p2 question (http://wiki.eclipse.org/Equinox/p2). I think that if you want to use a p2 repository as a general http server, you would be better off setting up a proper web site. Otherwise, you may find it good enough to package txt files as a part of your jars.
> 
> Kind regards,
> Mikhail Kalkov
> 
> ----- Original Message -----
> From: e92-330cd@xxxxxxxxx
> To: "Tycho user list" <tycho-user@xxxxxxxxxxx>
> Sent: Tuesday, October 16, 2012 9:26:55 AM
> Subject: [tycho-user] How put generated resources files (txt,	properties...) on update site?
> 
> Hello,
> we are building our product with tycho, and during build we generate some txt files. Than we would like to put the binary jars on the update site. To provide our product to someone else. But we need to provide also that generated txt files. Coz the other side, needs to read(access) that txt files.
> 
> If there is another way how to share the generated files, i dont mind. Is it possible to use our local m2 repository, where will be stored the txt files?
> 
> Please what is the proper steps to achieve that? Thank you
> D.
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top