-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new enums to force the arch and the os options
FMT 1.4.3 Some fixes here and there Update docs/readme
- Loading branch information
Showing
8 changed files
with
148 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
src/main/java/fr/flowarg/azuljavadownloader/AzulJavaArch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package fr.flowarg.azuljavadownloader; | ||
|
||
public enum AzulJavaArch | ||
{ | ||
/** x86 64bit and x86 32bit */ | ||
X86("x86"), | ||
/** x86 64bit same as {@link #AMD64} */ | ||
X64("x64"), | ||
/** x86 64bit same as {@link #X64} */ | ||
AMD64("amd64"), | ||
/** x86 32bit */ | ||
I686("i686"), | ||
/** arm 64bit and arm 32bit */ | ||
ARM("arm"), | ||
/** arm 64bit */ | ||
AARCH64("aarch64"), | ||
/** arm 32bit */ | ||
AARCH32("aarch32"), | ||
|
||
// mostly unused | ||
/** arm 32bit soft float */ | ||
AARCH32SF("aarch32sf"), | ||
/** arm 32bit hard float */ | ||
AARCH32HF("aarch32hf"), | ||
/** ppc 64bit and ppc 32bit */ | ||
PPC("ppc"), | ||
/** ppc 64bit */ | ||
PPC64("ppc64"), | ||
/** ppc 32bit */ | ||
PPC32("ppc32"), | ||
/** ppc 32bit hard float */ | ||
PPC32HF("ppc32hf"), | ||
/** ppc 32bit spe */ | ||
PPC32SPE("ppc32spe"), | ||
/** sparcv9 64bit and sparcv9 32bit */ | ||
SPARCV9("sparcv9"), | ||
/** sparcv9 32bit */ | ||
SPARCV9_32("sparcv9-32"), | ||
/** sparcv9 64bit */ | ||
SPARCV9_64("sparcv9-64") | ||
; | ||
|
||
private final String arch; | ||
|
||
AzulJavaArch(String arch) | ||
{ | ||
this.arch = arch; | ||
} | ||
|
||
public String getArch() | ||
{ | ||
return this.arch; | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return this.arch; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/java/fr/flowarg/azuljavadownloader/AzulJavaOS.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package fr.flowarg.azuljavadownloader; | ||
|
||
public enum AzulJavaOS | ||
{ | ||
MACOS("macos"), | ||
LINUX("linux"), | ||
WINDOWS("windows"), | ||
|
||
// mostly unused | ||
SOLARIS("solaris"), | ||
AIX("aix"), | ||
QNX("qnx"), | ||
LINUX_MUSL("linux-musl"), | ||
LINUX_GLIBC("linux-glibc"); | ||
|
||
private final String os; | ||
|
||
AzulJavaOS(String os) | ||
{ | ||
this.os = os; | ||
} | ||
|
||
public String getOs() | ||
{ | ||
return this.os; | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return this.os; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,9 @@ public String getType() | |
return this.type; | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return this.type; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters