@SuppressWarnings("unchecked")
public void run() {
logger.warn("lenskit-eval is deprecated, use lenskit eval instead");
ClassLoader loader = options.getClassLoader();
EvalScriptEngine engine = new EvalScriptEngine(loader, options.getProperties());
File f = options.getScriptFile();
if (!f.exists()) {
logger.error("script file {} does not exist", f);
System.err.format("%s: file does not exist%n", f);
System.err.println("lenskit-eval requires an eval script to execute (default: eval.groovy)");
System.err.println("run lenskit-eval --help for more information");
System.exit(1);
}
logger.info("loading evaluation from {}", f);
try {
EvalProject project = engine.loadProject(f);
if (options.getArgs().length == 0) {
String dft = project.getDefaultTarget();
if (dft == null && !project.getAntProject().getTargets().isEmpty()) {
String targets = Joiner.on(", ")
.join(Iterables.transform(