@@ -87,7 +87,7 @@ public class SystemInformation implements Command {
8787
8888 @ Override
8989 public void run () {
90- int progress = 0 , max = 8 ;
90+ int progress = 0 , max = 9 ;
9191 statusService .showStatus (0 , max , "Gathering system information" );
9292
9393 final StringBuilder sb = new StringBuilder ();
@@ -210,6 +210,14 @@ public int compare(final Class<?> c1, final Class<?> c2) {
210210
211211 statusService .showProgress (++progress , max );
212212
213+ // dump environment variables
214+
215+ sb .append (NL );
216+ sb .append ("-- Environment variables --" + NL );
217+ sb .append (getEnvironmentVariables ());
218+
219+ statusService .showProgress (++progress , max );
220+
213221 info = sb .toString ();
214222
215223 statusService .clearStatus ();
@@ -221,12 +229,16 @@ public static String getSystemProperties() {
221229 return mapToString (System .getProperties ());
222230 }
223231
232+ public static String getEnvironmentVariables () {
233+ return mapToString (System .getenv ());
234+ }
235+
224236 public static String getManifestData (final Manifest manifest ) {
225237 if (manifest == null ) return null ;
226238 return mapToString (manifest .getAll ());
227239 }
228240
229- public static String mapToString (final Map <Object , Object > map ) {
241+ public static String mapToString (final Map <?, ? > map ) {
230242 final StringBuilder sb = new StringBuilder ();
231243
232244 // sort keys by string representation
0 commit comments