[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Roaming not really movable

The repo in question is used for the initial install. Then, later on, subsequent installs are attempted using another repository. Now with the application residing on another disk.

>From the looks of it, an attempt is made to access the repository used for the initial installation together with the repository provided for the new install. With a fatal error as the result. I might of course do something wrong in Buckminster that causes this, but I'm not able to figure out what that is. Why the hard failure? And why is an attempt made to 'save' this repository?

- thomas

INFO:  install 'http://mysiteserver/mysite' 'my.company.bd.dev.plugin.stubbuilderfeature'
java.io.FileNotFoundException: e:\temp\bm35\buckminster\artifacts.xml (The system cannot find the path specified)
       at java.io.FileOutputStream.open(Native Method)
       at java.io.FileOutputStream.<init>(Unknown Source)
       at java.io.FileOutputStream.<init>(Unknown Source)
       at  org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:8 96)
       at  org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.save(SimpleArtifactRepository.java:8 77)
       at  org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.<init>(SimpleArtifactRepository.java:298)
       at  org.eclipse.equinox.internal.provisional.spi.p2.artifact.repository.SimpleArtifactRepositoryFactory.create(SimpleArtifactRepositoryFactory.java:123)
       at  org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.factoryCreate(ArtifactRepositoryManager.ja va:55)
       at  org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.doCreateRepository(AbstractRepositoryManager.java:272)
       at  org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.createRepository(ArtifactRepositoryManager .java:48)
       at  org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getBundlePoolRepository(Util.java:95)
       at  org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getAggregatedBundleRepository(Util.java:126)
       at  org.eclipse.equinox.internal.p2.touchpoint.eclipse.Util.getAggregatedBundleRepository(Util.java:103)
       at  org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.CollectAction.collect(CollectAction.java:70)
       at  org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.CollectAction.execute(CollectAction.java:30)
       at  org.eclipse.equinox.internal.provisional.p2.engine.Phase.mainPerform(Phase.java:129)
       at  org.eclipse.equinox.internal.provisional.p2.engine.Phase.perform(Phase.java:72)
       at  org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet.perform(PhaseSet.java:44)
       at  org.eclipse.equinox.internal.provisional.p2.engine.Engine.perform(Engine.java:54)
       at  org.eclipse.buckminster.installer.Install.planAndExecute(Install.java:122)
       at  org.eclipse.buckminster.installer.Install.run(Install.java:190)


On 01/28/2010 01:43 PM, Pascal Rapicault wrote:
Roaming refers to the ability of moving the installation and still be able
to run it. It does not have the characteristic of adjusting every possible
path in the universe including the repos listed in the repo managers :)
Did you try setting a relative path as a repo?




|------------>
| From:      |
|------------>
  >----------------------------------------------------------------------------------------------------------------------------------------|
  |Thomas Hallgren <thomas@xxxxxxx>                                                                                                        |
  >----------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >----------------------------------------------------------------------------------------------------------------------------------------|
  |P2 developer discussions <p2-dev@xxxxxxxxxxx>                                                                                           |
  >----------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >----------------------------------------------------------------------------------------------------------------------------------------|
  |28/01/2010 05:23 AM                                                                                                                     |
  >----------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >----------------------------------------------------------------------------------------------------------------------------------------|
  |[p2-dev] Roaming not really movable                                                                                                     |
  >----------------------------------------------------------------------------------------------------------------------------------------|





I have a Buckminster user who installs a buckminster runtime using the
p2 director with -roaming. He then copies the installation onto a memory
stick and makes an attempt to run from there. That doesn't work because
the installation has an absolute path (with drive letter) in the
<installDir>\p2\org.eclipse.equinox.p2.engine\.settings
\org.eclipse.equinox.p2.artifact.repository.prefs.

This is using 3.5 on a windows box. Is this a known problem? Has it been
fixed since?

- thomas

_______________________________________________
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