From 8e52faf0859eda783541438d471489ea2c966ce9 Mon Sep 17 00:00:00 2001 From: Alain Picard Date: Sun, 14 Nov 2021 10:30:16 -0500 Subject: [PATCH] Incorporated pull request https://github.com/fusesource/hawtjni/pull/73 --- .../src/main/java/org/fusesource/hawtjni/maven/BuildMojo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hawtjni-maven-plugin/src/main/java/org/fusesource/hawtjni/maven/BuildMojo.java b/hawtjni-maven-plugin/src/main/java/org/fusesource/hawtjni/maven/BuildMojo.java index 1acd3ae5..7031cc8e 100644 --- a/hawtjni-maven-plugin/src/main/java/org/fusesource/hawtjni/maven/BuildMojo.java +++ b/hawtjni-maven-plugin/src/main/java/org/fusesource/hawtjni/maven/BuildMojo.java @@ -280,7 +280,7 @@ private void vsBasedBuild(File buildDir) throws CommandLineException, MojoExecut // vcbuild was removed.. use the msbuild tool instead. int rc = cli.system(buildDir, new String[]{"msbuild", (windowsProjectName != null ? windowsProjectName : "vs2010") + ".vcxproj", "/property:Platform="+platform, "/property:Configuration="+configuration}); if( rc != 0 ) { - throw new MojoExecutionException("vcbuild failed with exit code: "+rc); + throw new MojoExecutionException("msbuild failed with exit code: "+rc); } } else { // try to use a vcbuild.. @@ -292,7 +292,7 @@ private void vsBasedBuild(File buildDir) throws CommandLineException, MojoExecut File libFile=FileUtils.resolveFile(buildDir, "target/"+platform+"-"+configuration+"/lib/"+library.getLibraryFileName()); if( !libFile.exists() ) { - throw new MojoExecutionException("vcbuild did not generate: "+libFile); + throw new MojoExecutionException("Visual Studio did not generate: "+libFile); } File target=FileUtils.resolveFile(libDirectory, library.getPlatformSpecificResourcePath(libPlatform));