maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aherit...@apache.org
Subject [13/50] git commit: o Restored old context classloader so the threads dont go running around with classloaders that should unload
Date Sat, 01 Dec 2012 14:50:02 GMT
o Restored old context classloader so the threads dont go running around with classloaders
that should unload


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/94ac1d6f
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/94ac1d6f
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/94ac1d6f

Branch: refs/heads/feature/colorized-console/log4j2
Commit: 94ac1d6f23ae25fc30e15e0fd85a13afc950c407
Parents: 5b8062f
Author: Kristian Rosenvold <kristian.rosenvold@gmail.com>
Authored: Thu Nov 29 22:03:08 2012 +0100
Committer: Arnaud HeĢritier <aheritier@exoplatform.com>
Committed: Sat Dec 1 13:51:05 2012 +0100

----------------------------------------------------------------------
 .../artifact/resolver/DefaultArtifactResolver.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/94ac1d6f/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
----------------------------------------------------------------------
diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
b/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
index 9c8364d..e75c61d 100644
--- a/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
+++ b/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
@@ -574,6 +574,7 @@ public class DefaultArtifactResolver
 
         public void run()
         {
+            ClassLoader old = Thread.currentThread().getContextClassLoader();
             try
             {
                 Thread.currentThread().setContextClassLoader( classLoader );
@@ -602,6 +603,8 @@ public class DefaultArtifactResolver
             finally
             {
                 latch.countDown();
+                Thread.currentThread().setContextClassLoader( old );
+
             }
         }
 


Mime
View raw message