diff --git a/.gitignore b/.gitignore index ceb8be9..c3f735d 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,3 @@ hs_err_pid* # Compiler output **/target/ - -# JNI dynamic libs -rust-maven-example/src/main/resources/io/questdb/rust/maven/example/*/** diff --git a/rust-maven-example/.gitignore b/rust-maven-example/.gitignore deleted file mode 100644 index 1a8d8d9..0000000 --- a/rust-maven-example/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -# Compiler output -**/target/ - -# JNI dynamic libs -rust-maven-example/src/main/resources/io/questdb/rust/maven/example/libs/** diff --git a/rust-maven-example/pom.xml b/rust-maven-example/pom.xml index de00a57..bf2572c 100644 --- a/rust-maven-example/pom.xml +++ b/rust-maven-example/pom.xml @@ -59,9 +59,9 @@ io.questdb @@ -115,7 +115,7 @@ true Great scott! A reversed string! diff --git a/rust-maven-plugin/src/main/java/io/questdb/rust/maven/plugin/CargoBuildMojo.java b/rust-maven-plugin/src/main/java/io/questdb/rust/maven/plugin/CargoBuildMojo.java index 4cae675..09288ce 100644 --- a/rust-maven-plugin/src/main/java/io/questdb/rust/maven/plugin/CargoBuildMojo.java +++ b/rust-maven-plugin/src/main/java/io/questdb/rust/maven/plugin/CargoBuildMojo.java @@ -252,7 +252,7 @@ private void copyArtifacts() throws MojoExecutionException { return; } - getLog().info("Copying artifacts to " + Shlex.quote(copyTo)); + getLog().info("Copying " + getName() + "'s cdylib to " + Shlex.quote(copyTo)); final File getArtifactPath = findArtifactPath(); final File copyToDir = getCopyToDir(); @@ -260,8 +260,11 @@ private void copyArtifacts() throws MojoExecutionException { try { Files.copy(getArtifactPath.toPath(), copyToPath.toPath(), StandardCopyOption.REPLACE_EXISTING); } catch (IOException e) { - throw new MojoExecutionException("Failed to copy " + getArtifactPath + " to " + copyToPath, e); + throw new MojoExecutionException( + "Failed to copy " + getArtifactPath + " to " + copyToPath + ":" + e.getMessage()); } + + getLog().info("Copied " + Shlex.quote(getArtifactPath.getName())); } @Override