Rename copy.java to get_jreleaser.java
This commit is contained in:
parent
61c4987b53
commit
f994696671
2 changed files with 8 additions and 8 deletions
|
@ -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::"
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue