Skip to content

Commit

Permalink
Fix some other problems with platform, especially on windows when com…
Browse files Browse the repository at this point in the history
…piling for the non native platform
  • Loading branch information
gnodet committed Apr 27, 2017
1 parent 58834e8 commit 477c8cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ private void vsBasedBuild(File buildDir) throws CommandLineException, MojoExecut
throw new MojoExecutionException("vcbuild did not generate: "+libFile);
}

File target=FileUtils.resolveFile(libDirectory, library.getPlatformSpecificResourcePath());
File target=FileUtils.resolveFile(libDirectory, library.getPlatformSpecificResourcePath(libPlatform));
FileUtils.copyFile(libFile, target);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class PackageJarMojo extends AbstractMojo {
* The platform identifier of this build. If not specified,
* it will be automatically detected.
*
* @parameter default-value="${hawtjni-platform}"
* @parameter
*/
private String platform;

Expand All @@ -115,8 +115,8 @@ public void execute() throws MojoExecutionException {
try {

Library library = new Library(name);
if (platform == null || platform.trim().length()==0 ) {
platform = library.getPlatform();
if (platform == null) {
platform = Library.getPlatform();
}

String classifier = null;
Expand Down

0 comments on commit 477c8cc

Please sign in to comment.