Skip to main content



      Home
Home » Eclipse Projects » P2 » Logging in headless P2 director
Logging in headless P2 director [message #1385296] Thu, 05 June 2014 08:37 Go to next message
Eclipse UserFriend
Currently I run P2 director like this:

./eclipse \
   -clean \
   -consolelog \
   -noSplash \
   -application org.eclipse.equinox.p2.director \
   -repository $site_all \
   -installIUs $ius_all \


It's unnerving to wait several minutes without a single sign of operation and then wait another several minutes after the IU list. Is there any way to get some feedback, like get console messages when there would be a job progress update?

Thank you in advance!
Re: Logging in headless P2 director [message #1397315 is a reply to message #1385296] Wed, 09 July 2014 10:35 Go to previous messageGo to next message
Eclipse UserFriend
By default p2 uses the Eclipse Communication Framework, which uses the Apache HttpClient libraries. Those libraries log using the Apache Commons Logging. If no other logging framework has been configured (e.g., m2eclipse has a logback configurator), you might be able to do something like:

eclipse -consolelog -nosplash -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/luna -list -vmargs -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.showdatetime=true -Dorg.apache.commons.logging.simplelog.log.httpclient.wire.header=trace


Brian.
Re: Logging in headless P2 director [message #1403980 is a reply to message #1397315] Mon, 28 July 2014 17:47 Go to previous message
Eclipse UserFriend
If you want to do something more specific then you would need to modify the DirectorApplication to add a verbose flag.
The code of the director app could be found at [1] and this is likely something that could be merged in time for 4.4.1.

[1] http://git.eclipse.org/c/equinox/rt.equinox.p2.git/tree/bundles/org.eclipse.equinox.p2.director.app/src/org/eclipse/equinox/internal/p2/director/app/DirectorApplication.java
Previous Topic:headless pde.exportFeatures does nothing??
Next Topic:Installing features into different Eclipse instance
Goto Forum:
  


Current Time: Wed Jun 18 17:59:24 EDT 2025

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

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

Back to the top