}
public String execute() {
String classPathXml = params.get(SzjdeConstants.PARAM_CLASSPATHXML);
String sourceFile = params.get(SzjdeConstants.PARAM_SOURCEFILE);
CompilerContext cc = getCompilerContext(classPathXml);
List<URL> urls = cc.getClassPathUrls();
StringBuilder cmd = new StringBuilder("java::-cp::");
for (URL url : urls) {
cmd.append(url.getPath()).append(File.pathSeparator);
}
cmd.append(" ::");
if (runAsUnitTest) {
cmd.append("org.junit.runner.JUnitCore::");
}
String className = cc.buildClassName(sourceFile);
cmd.append(className);
String uuid=UUID.randomUUID().toString();
String vimServerName = params.get(SzjdeConstants.PARAM_VIM_SERVER);
String bufname = params.get(SzjdeConstants.PARAM_BUF_NAME);
String origCmdLine = "Run " + className;
SystemJob job = new SystemJob(cmd.toString(),
vimServerName,"false",uuid,bufname,cc.getProjectRoot(),origCmdLine);
job.start();
return "";
}