Skip to content

Commit

Permalink
fix directory paths
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan committed Mar 20, 2024
1 parent f39f34c commit 3f433ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/io/avaje/inject/mojo/ModuleSPIMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@ public void execute() throws MojoExecutionException {
if (!directory.exists()) {
throw new MojoExecutionException("Failed to find build folder");
}

var dirPath = directory.getAbsolutePath();

var moduleCF = Paths.get(dirPath + "dirPath\\classes\\module-info.class");
var servicesDirectory = Paths.get(dirPath + "dirPath\\classes\\META-INF\\services");
var moduleCF = Paths.get(dirPath + "\\classes\\module-info.class");
var servicesDirectory = Paths.get(dirPath + "\\classes\\META-INF\\services");

if (!moduleCF.toFile().exists()) {
// no module-info to modify
Expand Down

0 comments on commit 3f433ac

Please sign in to comment.