Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] creating artifact repo from arbitrary files
  • From: Krzysztof Daniel <kdaniel@xxxxxxxxxx>
  • Date: Mon, 02 Dec 2013 13:53:18 +0100
  • Delivered-to: p2-dev@xxxxxxxxxxx
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAAA3NCSVQICAjb4U/gAAAHIklEQVRYw61YTWwbxxX+SC5FmVr9mCuzNF1KlFFT5GphG1VaJYHSGE4QA+LNhwrJQb32XLg5BT4YaBAkhdGjz0JTQD4YuYiHIjHk2khqIKnlYLUUKcCmvYFD0FqHspcEKS61PbzlcMU/kyIHxGJ3uDvzzffe+96bcVRKBnppVaPq4lx07eadhit7p93nzl7RNA9XNapGSTNKWsO/9nfsPR1WAoDrBgEbwj6WUdIeZ4prqze21ldZ51x8ZXnlz6d/E2z5STfN0cFk7RiuGtWHX9784vrHHcb9618+P7v8ATcstBytA9C2gJiXNLjLzrbawEq7RmydiYbsTDdQ3htDzW1nW726/HZPJri29u2ZaKjd8vpyaqOkra3eQI/t6vLbO9sqcUP0sJu+AFWN6mfXrnew1McfLdmNxa4A1lZvGCWty4m410oO3T/88mZLNHPxlfj4LsO0vjdJrzE0ALbWV3+clX77pw87ENMVIIamalQTKdkOYmt9tQZld31vkmGKj+/GP1oCrEfEVwhfIiWfa9LGozu13ZftlHTTGGf//Oo/rpmZltLasw+9un/P7hzre5PdA2LoH5W5fn2og7sAiIUiSTXd/FosFGnyd3z+r8Sr+/cQ/XAwgBIpeS6+ckXyQfgDAGgyAMyLsXkRPygAkmo6dv4ywgetv1fTRG2/Tm2X/Pj4roUGwLzIewPW/TsBAL/DxeYP9WLWxll6PSWfwx9fO11v2R7hg7Y0NLU66MPO1C+gQ+GQceIITZAAmIELA3Pq+uJs9JgeoVFCyhp1Osqa3WTQ5FgoolQwGIaaF9dgi3YQ2702UB/qpsIqay1NBgDq08EAEgO+7kGY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Q2D! SzS4ipkoD DqFYUgNTsToeG9AT2cdQ9FTcA08sad793vvY/QRM9RFvrfTUd2w5HdoFTFdkJ1C2acVFFYtiOFrBVlDE1tuCkHN+H4+SWAyjdfdyj12zKkVIIIBAFA8KnT4igwE/Y+zhSZt5LJqPKqdfrr/9pyH0m8i3OV0tZpiXHne+7Spd4YIo8ZXVhklBCambDXVnJY0zdEO6Fhud08OUY6wr37hvu99weg1K/u33t1/x4dwT7OFFVTslKs6EfGaQ91ZixCQznfwU1Q/qGb4UuX3JHenZpOx+1nl4Ts7PIHAPQn2RGqdcJUwzsBp44c4ET4YOT4HNsV7ftOscN/ovxMNNQu5gG4rn5ytfVhyk+5Pd/JxsNGLXdq+tzxCfeT/PFjpa2hY/6hY/5fT43sPy9AkyFO8sFfufnpBjR0iJtIyTtabrpU+vmhfCIadHLennVoaVYaXVicCXvZRpPkG5aDS6EHCnkSlbD2mpDQkKV2tlU2YCIlL81Kn127/smnf2s56f8BT1i2ky/8xFYAAAAASUVORK5CYII=
  • List-archive: <https://dev.eclipse.org/mailman/private/p2-dev>
  • List-help: <mailto:p2-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/p2-dev>, <mailto:p2-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/p2-dev>, <mailto:p2-dev-request@eclipse.org?subject=unsubscribe>
  • Organization: Red Hat

On Thu, 2013-11-28 at 15:41 +0000, Pascal Rapicault wrote:
> Depending on the content of partial profiles, it may get complicated to get them integrated in the real profile
> I would rely on shipping artifacts.jar that can be used by the profile generating mechanism and I would do the same for metadata repo with a content.jar.
Yeah, that was inevitable, but doesn't cause much trouble for me.

> If you want we can try to have a voice chat about the approach you are taking,

That would be good. We can arrange details on #eclipse-dev.

The approach sounded simple:
* load plugins listed in some files as if they were written in the
master, read-only bundles.info file
(https://git.eclipse.org/r/#/c/18429/7/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java, 30-119). Format of those files is the same as of bundles.info: (https://git.eclipse.org/r/#/c/18429/7/bundles/org.eclipse.equinox.p2.tests/testData/simpleConfiguratorExtendedTest/extension2/extension2.info)
* make getProfile method return a profile that has bundles from the
previous point installed. That turns out to be impossible (due to the
every attempt of profile manipulation resulting in a new bundles.info
written).

I really wonder whether partial profile (a file containing just units
merged at profile registry read, like http://fpaste.org/58359/59887541/)
wouldn't be the best option.

Chris. 
> 
> Pascal
> 
> -----Original Message-----
> From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Krzysztof Daniel
> Sent: November-28-13 9:58 AM
> To: p2-dev
> Subject: [p2-dev] creating artifact repo from arbitrary files
> 
> Hi,
> 
> I've found a problem when trying to install things loaded from a custom *.info file into a base profile - P2 requires metadata (which I generate from a running platform) and artifact repository, connected with an artifact key. The point is that I don't have any artifact repository connected with the *.info files, hence my question: what is more appropriate to do - create repositories on the fly (is that even
> possible) or ship entire repos?
> I like the speed of shipping partial profiles, as there is no startup overhead unless dropins are engaged on startup, but shipping repos has its pros and cons - writing second dropins-like mechanism (tracking repo changes etc etc) seems to be a bit overkill.
> 
> 
> --
> Krzysztof Daniel <kdaniel@xxxxxxxxxx>
> Red Hat
> 
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev


-- 
Krzysztof Daniel <kdaniel@xxxxxxxxxx>
Red Hat



Back to the top