Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
slandelle committed Mar 15, 2024
1 parent 4f2486e commit fe12dc5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/io/gatling/mojo/RecorderMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public final class RecorderMojo extends AbstractGatlingMojo {
public void execute() throws MojoExecutionException, MojoFailureException {

List<Path> testResourcesDirectories =
mavenProject.getTestResources().stream().map(Resource::getDirectory).map(Path::of)
mavenProject.getTestResources().stream()
.map(Resource::getDirectory)
.map(Path::of)
.filter(Files::isDirectory)
.collect(Collectors.toList());

Expand Down Expand Up @@ -106,7 +108,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {

try {
List<String> testClasspath = buildTestClasspath();
List<String> recorderArgs = recorderArgs(simulationsDirectory, format, testResourcesDirectory);
List<String> recorderArgs =
recorderArgs(simulationsDirectory, format, testResourcesDirectory);
Toolchain toolchain = toolchainManager.getToolchainFromBuildContext("jdk", session);
Fork forkedRecorder =
newFork(
Expand All @@ -125,7 +128,8 @@ public void execute() throws MojoExecutionException, MojoFailureException {
}
}

private List<String> recorderArgs(Path simulationsDirectory, String format, Path testResourcesDirectory) throws Exception {
private List<String> recorderArgs(
Path simulationsDirectory, String format, Path testResourcesDirectory) throws Exception {
List<String> arguments = new ArrayList<>();
addArg(arguments, "sf", simulationsDirectory.toFile().getCanonicalPath());
addArg(arguments, "fmt", format);
Expand Down

0 comments on commit fe12dc5

Please sign in to comment.