// Store .team file into jar file
addToJar(target, jarEntries, FileUtil.getRobotsDir().getPath(), robotPathWithoutFileExt, ".team");
}
private static void addRobotFilesToJar(JarOutputStream target, Set<String> jarEntries, IRobotItem robotItem, RobotProperties props) throws IOException {
IHostManager host = Container.getComponent(IHostManager.class);
for (String className : host.getReferencedClasses(robotItem)) {
if (!className.startsWith("java") && !className.startsWith("robocode")) {
String robotPath = className.replace('.', '/');
addRobotFilesToJar(target, jarEntries, robotPath, robotItem, props);
}
}