X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=inline;f=org.argeo.slc.core%2Fsrc%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2Ftasks%2FSystemCall.java;h=27cc59d60becde843d57a73fdd8d2f71d7349463;hb=c4282a516108d936112fbd4b91291563ec30a5e4;hp=b2d8723a658c1b0eceff3288230bcf4009fbf674;hpb=a922e3cb35c6182dbbb40c29eee42f7320c298ee;p=gpl%2Fargeo-slc.git diff --git a/org.argeo.slc.core/src/org/argeo/slc/core/execution/tasks/SystemCall.java b/org.argeo.slc.core/src/org/argeo/slc/core/execution/tasks/SystemCall.java index b2d8723a6..27cc59d60 100644 --- a/org.argeo.slc.core/src/org/argeo/slc/core/execution/tasks/SystemCall.java +++ b/org.argeo.slc.core/src/org/argeo/slc/core/execution/tasks/SystemCall.java @@ -54,8 +54,6 @@ import org.argeo.slc.core.test.SimpleResultPart; import org.argeo.slc.test.TestResult; import org.argeo.slc.test.TestStatus; import org.springframework.core.io.Resource; -import org.springframework.security.core.Authentication; -import org.springframework.security.core.context.SecurityContextHolder; /** Execute an OS specific system call. */ public class SystemCall implements Runnable { @@ -98,7 +96,7 @@ public class SystemCall implements Runnable { private Boolean exceptionOnFailed = true; private Boolean mergeEnvironmentVariables = true; - private Authentication authentication; +// private Authentication authentication; private String osConsole = null; private String generateScript = null; @@ -160,7 +158,7 @@ public class SystemCall implements Runnable { /** Executes the system call. */ public void run() { - authentication = SecurityContextHolder.getContext().getAuthentication(); +// authentication = SecurityContextHolder.getContext().getAuthentication(); // Manage streams Writer stdOutWriter = null; @@ -535,10 +533,10 @@ public class SystemCall implements Runnable { /** Log from the underlying streams. */ protected void log(String logLevel, String line) { // TODO optimize - if (SecurityContextHolder.getContext().getAuthentication() == null) { - SecurityContextHolder.getContext() - .setAuthentication(authentication); - } +// if (SecurityContextHolder.getContext().getAuthentication() == null) { +// SecurityContextHolder.getContext() +// .setAuthentication(authentication); +// } if ("ERROR".equals(logLevel)) log.error(line);