mirror of
https://github.com/apache/maven-mvnd.git
synced 2026-01-31 01:06:52 +08:00
Reset system properties after calling event syps (#729)
Event spies may want to read system properties, which will fail if they are reset too early. This change makes the behavior consistent with regular Maven.
This commit is contained in:
committed by
Guillaume Nodet
parent
60de2a84b9
commit
3be232595f
@@ -242,8 +242,8 @@ public class DaemonMavenCli {
|
||||
} catch (ExitException e) {
|
||||
return e.exitCode;
|
||||
} finally {
|
||||
System.setProperties(props);
|
||||
eventSpyDispatcher.close();
|
||||
System.setProperties(props);
|
||||
Thread.currentThread().setContextClassLoader(tccl);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user