private void maven_gpg_sign_and_deploy(Project b, File file, String classifier, File pomFile) throws Exception { Command command = new Command(); command.setTrace(); command.add(b.getProperty("mvn", "mvn")); command.add("gpg:sign-and-deploy-file", "-DreleaseInfo=true", "-DpomFile=pom.xml"); command.add("-Dfile=" + file.getAbsolutePath()); command.add("-DrepositoryId=" + repository); command.add("-Durl=" + url); optional(command, "passphrase", passphrase); optional(command, "keyname", keyname); optional(command, "homedir", homedir); optional(command, "classifier", classifier); optional(command, "pomFile", pomFile == null ? null : pomFile.getAbsolutePath()); StringBuilder stdout = new StringBuilder(); StringBuilder stderr = new StringBuilder(); int result = command.execute(stdout, stderr); if (result != 0) { b.error("Maven deploy to %s failed to sign and transfer %s because %s", repository, file, "" + stdout + stderr); } }
private void maven_gpg_sign_and_deploy(Project b, File file, String classifier, File pomFile) throws Exception { Command command = new Command(); command.setTrace(); command.add(b.getProperty("mvn", "mvn")); command.add("gpg:sign-and-deploy-file", "-DreleaseInfo=true", "-DpomFile=pom.xml"); command.add("-Dfile=" + file.getAbsolutePath()); command.add("-DrepositoryId=" + repository); command.add("-Durl=" + url); optional(command, "passphrase", passphrase); optional(command, "keyname", keyname); optional(command, "homedir", homedir); optional(command, "classifier", classifier); optional(command, "pomFile", pomFile == null ? null : pomFile.getAbsolutePath()); StringBuilder stdout = new StringBuilder(); StringBuilder stderr = new StringBuilder(); int result = command.execute(stdout, stderr); if (result != 0) { b.error("Maven deploy to %s failed to sign and transfer %s because %s", repository, file, "" + stdout + stderr); } }
private void maven_gpg_sign_and_deploy(Project b, File file, String classifier, File pomFile) throws Exception { Command command = new Command(); command.setTrace(); command.add(b.getProperty("mvn", "mvn")); command.add("gpg:sign-and-deploy-file", "-DreleaseInfo=true", "-DpomFile=pom.xml"); command.add("-Dfile=" + file.getAbsolutePath()); command.add("-DrepositoryId=" + repository); command.add("-Durl=" + url); optional(command, "passphrase", passphrase); optional(command, "keyname", keyname); optional(command, "homedir", homedir); optional(command, "classifier", classifier); optional(command, "pomFile", pomFile == null ? null : pomFile.getAbsolutePath()); StringBuffer stdout = new StringBuffer(); StringBuffer stderr = new StringBuffer(); int result = command.execute(stdout, stderr); if (result != 0) { b.error("Maven deploy to %s failed to sign and transfer %s because %s", repository, file, "" + stdout + stderr); } }
private void maven_gpg_sign_and_deploy(Project b, File file, String classifier, File pomFile) throws Exception { Command command = new Command(); command.setTrace(); command.add(b.getProperty("mvn", "mvn")); command.add("gpg:sign-and-deploy-file", "-DreleaseInfo=true", "-DpomFile=pom.xml"); command.add("-Dfile=" + file.getAbsolutePath()); command.add("-DrepositoryId=" + repository); command.add("-Durl=" + url); optional(command, "passphrase", passphrase); optional(command, "keyname", keyname); optional(command, "homedir", homedir); optional(command, "classifier", classifier); optional(command, "pomFile", pomFile == null ? null : pomFile.getAbsolutePath()); StringBuilder stdout = new StringBuilder(); StringBuilder stderr = new StringBuilder(); int result = command.execute(stdout, stderr); if (result != 0) { b.error("Maven deploy to %s failed to sign and transfer %s because %s", repository, file, "" + stdout + stderr); } }
private void maven_gpg_sign_and_deploy(Project b, File file, String classifier, File pomFile) throws Exception { Command command = new Command(); command.setTrace(); command.add(b.getProperty("mvn", "mvn")); command.add("gpg:sign-and-deploy-file", "-DreleaseInfo=true", "-DpomFile=pom.xml"); command.add("-Dfile=" + IO.absolutePath(file)); command.add("-DrepositoryId=" + repository); command.add("-Durl=" + url); optional(command, "passphrase", passphrase); optional(command, "keyname", keyname); optional(command, "homedir", homedir); optional(command, "classifier", classifier); optional(command, "pomFile", pomFile == null ? null : IO.absolutePath(pomFile)); StringBuilder stdout = new StringBuilder(); StringBuilder stderr = new StringBuilder(); int result = command.execute(stdout, stderr); if (result != 0) { b.error("Maven deploy to %s failed to sign and transfer %s because %s", repository, file, "" + stdout + stderr); } }
private void maven_gpg_sign_and_deploy(Project b, File file, String classifier, File pomFile) throws Exception { Command command = new Command(); command.setTrace(); command.add(b.getProperty("mvn", "mvn")); command.add("gpg:sign-and-deploy-file", "-DreleaseInfo=true", "-DpomFile=pom.xml"); command.add("-Dfile=" + IO.absolutePath(file)); command.add("-DrepositoryId=" + repository); command.add("-Durl=" + url); optional(command, "passphrase", passphrase); optional(command, "keyname", keyname); optional(command, "homedir", homedir); optional(command, "classifier", classifier); optional(command, "pomFile", pomFile == null ? null : IO.absolutePath(pomFile)); StringBuilder stdout = new StringBuilder(); StringBuilder stderr = new StringBuilder(); int result = command.execute(stdout, stderr); if (result != 0) { b.error("Maven deploy to %s failed to sign and transfer %s because %s", repository, file, "" + stdout + stderr); } }