Skip to content

Commit

Permalink
Merge pull request #78 from sridamul/use-paths
Browse files Browse the repository at this point in the history
Use Paths instead of File
  • Loading branch information
jonesbusy authored Jul 15, 2024
2 parents 0065f10 + 2e37273 commit 8fae873
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.jenkins.tools.pluginmodernizer.core.impl;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
Expand Down Expand Up @@ -172,7 +172,8 @@ private void validateMavenVersion() {

private InvocationRequest createInvocationRequest(String pluginPath, List<String> goals) {
InvocationRequest request = new DefaultInvocationRequest();
request.setPomFile(new File(pluginPath, "pom.xml"));
Path pomPath = Paths.get(pluginPath, "pom.xml");
request.setPomFile(pomPath.toFile());
request.setGoals(goals);
return request;
}
Expand Down

0 comments on commit 8fae873

Please sign in to comment.