private void sign(File file, String passphrase) throws Exception { trace("signing %s", file); File asc = new File(file.getParentFile(), file.getName() + ".asc"); asc.delete(); Command command = new Command(); command.setTrace(); command.add(getProperty("gpg", "gpg")); if (passphrase != null) command.add("--passphrase", passphrase); command.add("-ab", "--sign"); // not the -b!! command.add(file.getAbsolutePath()); System.err.println(command); StringBuilder stdout = new StringBuilder(); StringBuilder stderr = new StringBuilder(); int result = command.execute(stdout, stderr); if (result != 0) { error("gpg signing %s failed because %s", file, "" + stdout + stderr); } }
private void sign(File file, String passphrase) throws Exception { trace("signing %s", file); File asc = new File(file.getParentFile(), file.getName() + ".asc"); asc.delete(); Command command = new Command(); command.setTrace(); command.add(getProperty("gpgp", "gpg")); if (passphrase != null) command.add("--passphrase", passphrase); command.add("-ab", "--sign"); // not the -b!! command.add(file.getAbsolutePath()); System.err.println(command); StringBuilder stdout = new StringBuilder(); StringBuilder stderr = new StringBuilder(); int result = command.execute(stdout, stderr); if (result != 0) { error("gpg signing %s failed because %s", file, "" + stdout + stderr); } }
private void sign(File file, String passphrase) throws Exception { trace("signing %s", file); File asc = new File(file.getParentFile(), file.getName() + ".asc"); asc.delete(); Command command = new Command(); command.setTrace(); command.add(getProperty("gpgp", "gpg")); if (passphrase != null) command.add("--passphrase", passphrase); command.add("-ab", "--sign"); // not the -b!! command.add(file.getAbsolutePath()); System.out.println(command); StringBuffer stdout = new StringBuffer(); StringBuffer stderr = new StringBuffer(); int result = command.execute(stdout, stderr); if (result != 0) { error("gpg signing %s failed because %s", file, "" + stdout + stderr); } }
private void sign(File file, String passphrase) throws Exception { trace("signing %s", file); File asc = new File(file.getParentFile(), file.getName() + ".asc"); asc.delete(); Command command = new Command(); command.setTrace(); command.add(getProperty("gpg", "gpg")); if (passphrase != null) command.add("--passphrase", passphrase); command.add("-ab", "--sign"); // not the -b!! command.add(file.getAbsolutePath()); System.err.println(command); StringBuilder stdout = new StringBuilder(); StringBuilder stderr = new StringBuilder(); int result = command.execute(stdout, stderr); if (result != 0) { error("gpg signing %s failed because %s", file, "" + stdout + stderr); } }
private void sign(File file, String passphrase) throws Exception { logger.debug("signing {}", file); File asc = new File(file.getParentFile(), file.getName() + ".asc"); IO.delete(asc); Command command = new Command(); command.setTrace(); command.add(getProperty("gpg", "gpg")); if (passphrase != null) command.add("--passphrase", passphrase); command.add("-ab", "--sign"); // not the -b!! command.add(IO.absolutePath(file)); StringBuilder stdout = new StringBuilder(); StringBuilder stderr = new StringBuilder(); int result = command.execute(stdout, stderr); if (result != 0) { error("gpg signing %s failed because %s", file, "" + stdout + stderr); } }
private void sign(File file, String passphrase) throws Exception { logger.debug("signing {}", file); File asc = new File(file.getParentFile(), file.getName() + ".asc"); IO.delete(asc); Command command = new Command(); command.setTrace(); command.add(getProperty("gpg", "gpg")); if (passphrase != null) command.add("--passphrase", passphrase); command.add("-ab", "--sign"); // not the -b!! command.add(IO.absolutePath(file)); StringBuilder stdout = new StringBuilder(); StringBuilder stderr = new StringBuilder(); int result = command.execute(stdout, stderr); if (result != 0) { error("gpg signing %s failed because %s", file, "" + stdout + stderr); } }
command.add(getProperty("javadoc", "javadoc")); command.add("-quiet"); command.add("-protected");
command.add(getProperty("javadoc", "javadoc")); command.add("-quiet"); command.add("-protected");
command.add(getProperty("javadoc", "javadoc")); command.add("-quiet"); command.add("-protected");
command.add(getProperty("javadoc", "javadoc")); command.add("-quiet"); command.add("-protected");
command.add(getProperty("javadoc", "javadoc")); command.add("-quiet"); command.add("-protected");
command.add(getProperty("javadoc", "javadoc")); command.add("-quiet"); command.add("-protected");