throw new UserException(_loc.get("name-mult-args", classes));
ApplicationIdTool tool;
Class cls;
ClassMetaData meta;
BCClassLoader bc = (BCClassLoader) AccessController
.doPrivileged(J2DoPrivHelper.newBCClassLoaderAction(new Project()));
for (Iterator itr = classes.iterator(); itr.hasNext();) {
cls = (Class) itr.next();
log.info(_loc.get("appid-running", cls));
meta = repos.getMetaData(cls, null, false);
setObjectIdType(meta, flags, bc);
tool = new ApplicationIdTool(conf, cls, meta);
tool.setDirectory(flags.directory);
tool.setIgnoreErrors(flags.ignoreErrors);
tool.setToken(flags.token);
tool.setCodeFormat(flags.format);
if (tool.run()) {
log.info(_loc.get("appid-output", tool.getFile()));
tool.record();
} else
log.info(_loc.get("appid-norun"));
}
bc.getProject().clear();
return true;
}