private static void createDummyUberJar(File dest) throws IOException { try (JarOutputStream os = new JarOutputStream(new FileOutputStream(dest))) { os.setComment("Dummy Flink Uber jar"); } }
/** * Set the JAR Comment for the output JAR. */ final public void setJARComment(String comment) throws IOException, IllegalStateException { makeOutputJar(); outputJar.setComment(comment); }
/** * Set the JAR Comment for the output JAR. */ final public void setJARComment(String comment) throws IOException, IllegalStateException { makeOutputJar(); outputJar.setComment(comment); }
public static String createPackage(File jarFile, List<RobotItem> robotItems, TeamItem teamItem, RobotProperties props) { JarOutputStream jarOut = null; FileOutputStream fos = null; Set<String> jarEntries = new HashSet<String>(); try { fos = new FileOutputStream(jarFile); jarOut = new JarOutputStream(fos, createManifest(robotItems)); String rVersion = Container.getComponent(IVersionManager.class).getVersion(); jarOut.setComment(rVersion + " - Robocode version"); boolean isTeam = teamItem != null; // Add robot items addRobotItemToJar(jarOut, jarEntries, robotItems, props, isTeam); // Add team item, if it exists if (isTeam) { addTeamItemToJar(jarOut, jarEntries, teamItem, props); } } catch (IOException e) { Logger.logError(e); } finally { FileUtil.cleanupStream(jarOut); FileUtil.cleanupStream(fos); } StringBuilder sb = new StringBuilder(); for (String entry : jarEntries) { sb.append(entry).append('\n'); } appendCodeSize(jarFile, sb); return sb.toString(); }
String comment= jarPackage.getComment(); if (comment != null) fJarOutputStream.setComment(comment); if (fJarPackage.isRefactoringAware()) { Assert.isTrue(fJarPackage.areDirectoryEntriesIncluded());
String comment= jarPackage.getComment(); if (comment != null) fJarOutputStream.setComment(comment); } catch (IOException ex) { throw JarPackagerUtil.createCoreException(ex.getLocalizedMessage(), ex);
String comment= jarPackage.getComment(); if (comment != null) fJarOutputStream.setComment(comment); } catch (IOException ex) { throw JarPackagerUtil.createCoreException(ex.getLocalizedMessage(), ex);
String comment= jarPackage.getComment(); if (comment != null) fJarOutputStream.setComment(comment); } catch (IOException ex) { throw JarPackagerUtil.createCoreException(ex.getLocalizedMessage(), ex);
String comment= jarPackage.getComment(); if (comment != null) fJarOutputStream.setComment(comment); } catch (IOException ex) { throw JarPackagerUtil.createCoreException(ex.getLocalizedMessage(), ex);
String comment= jarPackage.getComment(); if (comment != null) fJarOutputStream.setComment(comment); if (fJarPackage.isRefactoringAware()) { Assert.isTrue(fJarPackage.areDirectoryEntriesIncluded());
String comment= jarPackage.getComment(); if (comment != null) fJarOutputStream.setComment(comment); } catch (IOException ex) { throw JarPackagerUtil.createCoreException(ex.getLocalizedMessage(), ex);
String comment= jarPackage.getComment(); if (comment != null) fJarOutputStream.setComment(comment); } catch (IOException ex) { throw JarPackagerUtil.createCoreException(ex.getLocalizedMessage(), ex);
String comment= jarPackage.getComment(); if (comment != null) fJarOutputStream.setComment(comment); if (fJarPackage.isRefactoringAware()) { Assert.isTrue(fJarPackage.areDirectoryEntriesIncluded());