Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » Logging in headless P2 director
Logging in headless P2 director [message #1385296] Thu, 05 June 2014 12:37 Go to next message
Andras Kovi is currently offline Andras KoviFriend
Messages: 13
Registered: January 2014
Junior Member
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 14:35 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 847
Registered: January 2012
Senior Member

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 -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


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: Logging in headless P2 director [message #1403980 is a reply to message #1397315] Mon, 28 July 2014 21:47 Go to previous message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
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.

Previous Topic:headless pde.exportFeatures does nothing??
Next Topic:Installing features into different Eclipse instance
Goto Forum:

Current Time: Wed Aug 21 09:13:26 GMT 2019

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

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

Back to the top