From f9946966718f55dea54bea3e29359574d8f2c2d6 Mon Sep 17 00:00:00 2001 From: Andres Almiray Date: Tue, 6 Apr 2021 16:47:34 +0200 Subject: [PATCH] Rename copy.java to get_jreleaser.java --- action.yml | 2 +- copy.java => get_jreleaser.java | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) rename copy.java => get_jreleaser.java (76%) diff --git a/action.yml b/action.yml index 375cdae..19c020f 100644 --- a/action.yml +++ b/action.yml @@ -31,7 +31,7 @@ runs: working-directory: ${{ inputs.working-directory }} run: | echo "::group::📦 Download JReleaser" - java "${{ github.action_path }}/copy.java" ${{ inputs.version }} + java "${{ github.action_path }}/get_jreleaser.java" ${{ inputs.version }} java -jar jreleaser-cli.jar --version echo "::endgroup::" diff --git a/copy.java b/get_jreleaser.java similarity index 76% rename from copy.java rename to get_jreleaser.java index 6b4e205..b78a363 100644 --- a/copy.java +++ b/get_jreleaser.java @@ -5,10 +5,10 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.StandardCopyOption; -class copy { +class get_jreleaser { public static void main(String... args) throws Exception { if (args.length != 1) { - System.err.println("Usage: java copy.java VERSION"); + System.err.println("Usage: java get_jreleaser.java VERSION"); System.exit(1); } @@ -25,12 +25,12 @@ class copy { System.out.printf("%s << copied %d bytes%n", file, size); System.out.printf("✅ JReleaser installed successfully%n"); } catch(FileNotFoundException e) { - System.out.printf("❌ JReleaser %s not found%n", version); - System.exit(1); + System.out.printf("❌ JReleaser %s not found%n", version); + System.exit(1); } catch(IOException e) { - System.out.printf("☠️ JReleaser %s could not be downloaded/copied%n", version); - e.printStackTrace(); - System.exit(1); + System.out.printf("☠️ JReleaser %s could not be downloaded/copied%n", version); + e.printStackTrace(); + System.exit(1); } } }