From 72e3f62243f59493317a45168148c2f3dc3d2533 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Sun, 22 Apr 2018 14:20:01 +0900 Subject: [PATCH] Understand IA64N and IA64W --- README.md | 3 ++- src/main/java/kr/motd/maven/os/Detector.java | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9431d3b..771f32b 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,8 @@ * `x86_64` - if the value is one of: `x8664`, `amd64`, `ia32e`, `em64t`, `x64` * `x86_32` - if the value is one of: `x8632`, `x86`, `i386`, `i486`, `i586`, `i686`, `ia32`, `x32` -* `itanium_64` - if the value is one of: `ia64`, `itanium64` +* `itanium_64` - if the value is one of: `ia64`, `ia64w`, `itanium64` +* `itanium_32` - if the value is one of: `ia64n` * `sparc_32` - if the value is one of: `sparc`, `sparc32` * `sparc_64` - if the value is one of: `sparcv9`, `sparc64` * `arm_32` - if the value is one of: `arm`, `arm32` diff --git a/src/main/java/kr/motd/maven/os/Detector.java b/src/main/java/kr/motd/maven/os/Detector.java index 4e34be9..80e5329 100644 --- a/src/main/java/kr/motd/maven/os/Detector.java +++ b/src/main/java/kr/motd/maven/os/Detector.java @@ -180,9 +180,12 @@ private static String normalizeArch(String value) { if (value.matches("^(x8632|x86|i[3-6]86|ia32|x32)$")) { return "x86_32"; } - if (value.matches("^(ia64|itanium64)$")) { + if (value.matches("^(ia64w?|itanium64)$")) { return "itanium_64"; } + if ("ia64n".equals(value)) { + return "itanium_32"; + } if (value.matches("^(sparc|sparc32)$")) { return "sparc_32"; }