Skip to content

Commit

Permalink
[SHRINKRES-69] Allow explicitly-set sysProp for pre-emptive auth to b…
Browse files Browse the repository at this point in the history
…e honored, simply define a default
  • Loading branch information
ALRubinger committed Sep 22, 2012
1 parent fb8915f commit 6d1390b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ class ManualWagonProvider implements WagonProvider {
// SHRINKRES-69
// Needed to ensure that we do not cache BASIC Auth values
static {
System.setProperty("maven.wagon.http.preemptiveAuthentication", Boolean.TRUE.toString());
final String sysPropKeyPreempAuth = "maven.wagon.http.preemptiveAuthentication";
final String preempAuth = System.getProperty(sysPropKeyPreempAuth, Boolean.TRUE.toString());
System.setProperty(sysPropKeyPreempAuth, preempAuth);
}

private static final String HTTP = "http";
Expand Down

0 comments on commit 6d1390b

Please sign in to comment.