final AddUser userAdder = (AddUser) it.next();
userAdder.execute();
}
final ExternalHostSystem host = new ExternalHostSystem(getHost(), getPort(), this, getShabang(), null);
final ProtocolSessionBuilder builder = new ProtocolSessionBuilder();
if (scripts == null) {
scripts = new Union();
scripts.add(new FileResource(script));
}
for (final Iterator it=scripts.iterator();it.hasNext();) {
final Resource resource = (Resource) it.next();
try {
final Runner runner = new Runner();
try {
final InputStream inputStream = resource.getInputStream();
final String name = resource.getName();
builder.addProtocolLines(name == null ? "[Unknown]" : name, inputStream, runner.getTestElements());
runner.runSessions(host);
} catch (UnsupportedOperationException e) {
log("Resource cannot be read: " + resource.getName(), Project.MSG_WARN);
}