Skip to content

Commit

Permalink
Merge pull request #59 from whittlec/master
Browse files Browse the repository at this point in the history
Use the linux64 platform when run on 64-bit Linux.
  • Loading branch information
lukaszlenart authored Sep 15, 2017
2 parents da2e02a + 6572b57 commit b1fa6b3
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -586,14 +586,21 @@ private void retrieveBinaryBits(Artifact a) throws MojoExecutionException {
private Artifact chooseBinaryBits() throws MojoExecutionException {
String plat;
String os = System.getProperty("os.name");
String arch = System.getProperty("os.arch");
getLog().debug("OS = " + os);
getLog().debug("Architecture = " + arch);

// See here for possible values of os.name:
// http://lopica.sourceforge.net/os.html
if (os.startsWith("Windows")) {
plat = "win32";
} else if ("Linux".equals(os)) {
plat = "linux";
if ("amd64".equals(arch)) {
plat = "linux64";
}
else {
plat = "linux";
}
} else if ("Solaris".equals(os) || "SunOS".equals(os)) {
plat = "solaris";
} else if ("Mac OS X".equals(os) || "Darwin".equals(os)) {
Expand Down

0 comments on commit b1fa6b3

Please sign in to comment.