Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Allow configuration of directory as alternative to USERHOME(oomph enterprise setup)
Allow configuration of directory as alternative to USERHOME [message #1730771] Thu, 28 April 2016 11:47 Go to next message
Peter Kirschner is currently offline Peter KirschnerFriend
Messages: 25
Registered: July 2009
Junior Member

In many company networks the userhome is pointing to a roamed directory which has only a limited size. Oomph is currently storing the p2 bundlepool there. Therefore the directory is growing to large and causes synchronization problems.

Would it be possible to make the this location configurable?

Currently implementation is hardcode inside AgentManagerImpl?

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


What do you think about a something like an additional SystemProperty inside
org.eclipse.oomph.internal.setup.SetupProperties 
named
oomph.setup.p2
which is only used when given or is defaulting otherwise to userhome value.

What do you think?
Would you accept a contribution?
Re: Allow configuration of directory as alternative to USERHOME [message #1730785 is a reply to message #1730771] Thu, 28 April 2016 12:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Peter,

On my old machine, my C drive was almost full so that was a problem.
But I just used the installer to create a new agent and it's default
bundle pool on my D drive and deleted the old one on the C drive.

If you wanted to influence the default location of the agent I think
that's best done for this field, not by changing the value of userHome
which really should be the user.home system property because that's used
elsewhere to look things up.

defaultAgentLocation = new File(userHome, ".p2");




On 28.04.2016 13:47, Peter Kirschner wrote:
> In many company networks the userhome is pointing to a roamed
> directory which has only a limited size. Oomph is currently storing
> the p2 bundlepool there. Therefore the directory is growing to large
> and causes synchronization problems.
>
> Would it be possible to make the this location configurable?
>
> Currently implementation is hardcode inside AgentManagerImpl?
>
> public AgentManagerImpl()
> {
> this(new File(PropertiesUtil.USER_HOME));
> }
>
>
> What do you think about a something like an additional SystemProperty
> inside org.eclipse.oomph.internal.setup.SetupProperties named
> oomph.setup.p2 which is only used when given or is defaulting
> otherwise to userhome value.
>
> What do you think? Would you accept a contribution?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Allow configuration of directory as alternative to USERHOME [message #1730801 is a reply to message #1730785] Thu, 28 April 2016 14:45 Go to previous messageGo to next message
Peter Kirschner is currently offline Peter KirschnerFriend
Messages: 25
Registered: July 2009
Junior Member

Hi Ed,

that is exactly my point. I do not want to change the userhome cause it is used for other eclipse user stores, like secure_storage and so on.

My question/requirement is to configure the defaultAgentLocation?
As far as I know this is currently not possible?
What do you think about making it configurable?

I'm trying to provide a default oomph with custom batch file for launching and configuring oomph for the "enterprise" setup.
Re: Allow configuration of directory as alternative to USERHOME [message #1730810 is a reply to message #1730801] Thu, 28 April 2016 15:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Peter,

Yes, we could make the default be configurable.

That being said, if you already have a custom batch file you could
manage the contents of

~/.eclipse/org.eclipse.oomph.p2/*.info

to point at different defaults, i.e., make them the same way as if you'd
manually created a new agent and deleted the old agent...



On 28.04.2016 16:45, Peter Kirschner wrote:
> Hi Ed,
>
> that is exactly my point. I do not want to change the userhome cause
> it is used for other eclipse user stores, like secure_storage and so on.
>
> My question/requirement is to configure the defaultAgentLocation?
> As far as I know this is currently not possible?
> What do you think about making it configurable?
>
> I'm trying to provide a default oomph with custom batch file for
> launching and configuring oomph for the "enterprise" setup.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Allow configuration of directory as alternative to USERHOME [message #1731135 is a reply to message #1730810] Tue, 03 May 2016 06:42 Go to previous message
Peter Kirschner is currently offline Peter KirschnerFriend
Messages: 25
Registered: July 2009
Junior Member

Thank you Ed, I will investigate on pre-oomph-execution batch modifications.
But I think it will cause issues from the initial / virgin installation to the succeeding startups from batch.

I will see and report back Wink
Previous Topic:Prevent Oomph remembering variable values
Next Topic:Default Stream?
Goto Forum:
  


Current Time: Thu Apr 18 08:38:11 GMT 2024

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

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

Back to the top