Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » control org.eclipse.oomph.p2 settings upfront
control org.eclipse.oomph.p2 settings upfront [message #1702646] Thu, 23 July 2015 17:27 Go to next message
Joerg Buchberger is currently offline Joerg BuchbergerFriend
Messages: 46
Registered: July 2009
Member
Hi there

Is there a way to control org.eclipse.oomph.p2 settings upfront?
Namely the contents of agents.info and the defaults.info - e.g. by using parameters supplied to the oomph installer or by adding/changing configuration in the oomph installer directory?

Cheers
Jörg

Re: control org.eclipse.oomph.p2 settings upfront [message #1702689 is a reply to message #1702646] Fri, 24 July 2015 07:06 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 23.07.2015 um 19:27 schrieb Joerg Buchberger:
> Hi there
>
> Is there a way to control org.eclipse.oomph.p2 settings upfront?
> Namely the contents of agents.info and the defaults.info - e.g. by using parameters supplied to the oomph installer or
> by adding/changing configuration in the oomph installer directory?
That's currently not possible:

public AgentManagerImpl()
{
this(new File(PropertiesUtil.getUserHome()));
}

public AgentManagerImpl(final File userHome)
{
defaultAgentLocation = new File(userHome, ".p2");

File folder = P2CorePlugin.getUserStateFolder(userHome);
File infoFile = new File(folder, "agents.info");
defaultsFile = new File(folder, "defaults.info");

You can only influence it by changing the user.home system property, but that would impact various other functions as
well. We could try to make that more configurable through additional system properties but I'd need to better understand
what exactly you want to achieve.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: control org.eclipse.oomph.p2 settings upfront [message #1702708 is a reply to message #1702689] Fri, 24 July 2015 08:51 Go to previous messageGo to next message
Joerg Buchberger is currently offline Joerg BuchbergerFriend
Messages: 46
Registered: July 2009
Member
Eike Stepper wrote on Fri, 24 July 2015 03:06
Am 23.07.2015 um 19:27 schrieb Joerg Buchberger:
> Hi there
>
> Is there a way to control org.eclipse.oomph.p2 settings upfront?
> Namely the contents of agents.info and ...

You can only influence it by changing the user.home system property, but that would impact various other functions as
well. We could try to make that more configurable through additional system properties but I'd need to better understand
what exactly you want to achieve.


Wink well, I happen to be responsible for maintenance and provisioning of development environment in some of our projects at the company here ...
this also means troubleshooting, when fellow workers have problems with their environments...
it just makes it much easier to analyze and fix problems, if all relevant stuff is located in one place next to another, rather than scattered around different disks and folders.

So, under current circumstances my plan is to experiment with some init script, that will put canonical paths in there ... something along the lines of "D:/dev/eclipse/agent" into agents.info and
org.eclipse.oomph.setup.ui=D\:\\dev\\eclipse\\pool
org.eclipse.oomph.setup.ui\:agent=D\:\\dev\\eclipse\\agent
into defaults.info ...

Thanks a bunch for your quick and patient support on all this questions.
Jörg
Re: control org.eclipse.oomph.p2 settings upfront [message #1702718 is a reply to message #1702708] Fri, 24 July 2015 09:34 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Am 24.07.2015 um 10:51 schrieb Joerg Buchberger:
> ...
>>
>> You can only influence it by changing the user.home system property, but that would impact various other functions as
>> well. We could try to make that more configurable through additional system properties but I'd need to better
>> understand what exactly you want to achieve.
>
>
> ;) well, I happen to be responsible for maintenance and provisioning of development environment in some of our
> projects at the company here ...
> this also means troubleshooting, when fellow workers have problems with their environments...
> it just makes it much easier to analyze and fix problems, if all relevant stuff is located in one place next to
> another, rather than scattered around different disks and folders.
>
> So, under current circumstances my plan is to experiment with some init script, that will put canonical paths in there
> ... something along the lines of "D:/dev/eclipse/agent" into agents.info and
> org.eclipse.oomph.setup.ui=D\:\\dev\\eclipse\\pool
> org.eclipse.oomph.setup.ui\:agent=D\:\\dev\\eclipse\\agent
> into defaults.info ...
Yes, such a script should be easy to get right. The format of these files is very simple. And then there's probably no
need for additional options in Oomph.

> Thanks a bunch for your quick and patient support on all this questions.
You're welcome ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:How to disable automatic preferences initialization for debug configuration?
Next Topic:default Java runtime
Goto Forum:
  


Current Time: Sat Dec 07 14:54:01 GMT 2024

Powered by FUDForum. Page generated in 0.03118 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top