Skip to content

Commit

Permalink
chore: drop resourcesFolder option
Browse files Browse the repository at this point in the history
Motivation:

Useless option, resources are picked from the classpath.
  • Loading branch information
slandelle committed Feb 14, 2024
1 parent a081aac commit 99faad8
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/main/java/io/gatling/mojo/GatlingMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@ public final class GatlingMojo extends AbstractGatlingExecutionMojo {
@Parameter(property = "gatling.propagateSystemProperties", defaultValue = "true")
private boolean propagateSystemProperties;

/** Use this folder as the folder where feeders are stored. */
@Parameter(
property = "gatling.resourcesFolder",
defaultValue = "${project.basedir}/src/test/resources")
private File resourcesFolder;

@Parameter(defaultValue = "${plugin.artifacts}", readonly = true)
private List<Artifact> artifacts;

Expand Down Expand Up @@ -382,18 +376,15 @@ private List<String> simulations() throws MojoFailureException {
private List<String> gatlingArgs(String simulationClass) throws Exception {
// Arguments
List<String> args = new ArrayList<>();
addArg(args, "rsf", resourcesFolder.getCanonicalPath());
addArg(args, "s", simulationClass);
addArg(args, "ro", reportsOnly);
addArg(args, "rf", resultsFolder.getCanonicalPath());

addArg(args, "rd", runDescription);

if (noReports) {
args.add("-nr");
}

addArg(args, "s", simulationClass);
addArg(args, "ro", reportsOnly);

String[] gatlingVersion =
MojoUtils.findByGroupIdAndArtifactId(
mavenProject.getArtifacts(), GATLING_GROUP_ID, GATLING_MODULE_APP)
Expand Down

0 comments on commit 99faad8

Please sign in to comment.