|
Re: control org.eclipse.oomph.p2 settings upfront [message #1702689 is a reply to message #1702646] |
Fri, 24 July 2015 07: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 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
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Re: control org.eclipse.oomph.p2 settings upfront [message #1702718 is a reply to message #1702708] |
Fri, 24 July 2015 09:34 |
|
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
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03118 seconds