Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 240463 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/commons/net/WebUtil.java (-5 / +29 lines)
Lines 549-560 Link Here
549
		// initialization is done in the static initializer		
549
		// initialization is done in the static initializer		
550
	}
550
	}
551
551
552
	/**
553
	 * Defaults org.apache.commons.logging system properties.
554
	 * <p>
555
	 * Only sets System properties if they are NOT already set to a value.
556
	 * </p>
557
	 * <p>
558
	 * For example adding this to your Eclipse Java launch command line enables verbose Mylyn wire logging:
559
	 * 
560
	 * <pre>
561
	 * 
562
	 * -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
563
	 * -Dorg.apache.commons.logging.simplelog.showlogname=true -Dorg.apache.commons.logging.simplelog.defaultlog=off
564
	 * -Dorg.apache.commons.logging.simplelog.log.httpclient.wire=debug
565
	 * -Dorg.apache.commons.logging.simplelog.log.org.apache.commons.httpclient=off
566
	 * -Dorg.apache.commons.logging.simplelog.log.org.apache.axis.message=debug
567
	 * 
568
	 * </pre>
569
	 * </p>
570
	 */
552
	private static void initCommonsLoggingSettings() {
571
	private static void initCommonsLoggingSettings() {
553
		// remove?
572
		defaultSystemProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");
554
		System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");
573
		defaultSystemProperty("org.apache.commons.logging.simplelog.defaultlog", "off");
555
		System.setProperty("org.apache.commons.logging.simplelog.defaultlog", "off");
574
		defaultSystemProperty("org.apache.commons.logging.simplelog.log.httpclient.wire.header", "off");
556
		System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire.header", "off");
575
		defaultSystemProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient", "off");
557
		System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient", "off");
576
	}
577
578
	private static void defaultSystemProperty(String key, String defaultValue) {
579
		if (System.getProperty(key) == null) {
580
			System.setProperty(key, defaultValue);
581
		}
558
	}
582
	}
559
583
560
	private static boolean isRepositoryHttps(String repositoryUrl) {
584
	private static boolean isRepositoryHttps(String repositoryUrl) {

Return to bug 240463