--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
That’s not it : you don’t need to package your ressources in a JAR but make sure that the classpath does not contains each ressources individually, but the whole resources folder.
Java doesn’t pickup single files in the classpath, unless they’re JARs.
Some examples :
java -cp lib/foo.jar:lib/bar.jar:lib/quz.jar <mainClass>java -cp lib/* <mainClass>java -cp lib/*:conf/logback.xml:conf/gatling.conf <mainClass>java -cp lib/*:conf <mainClass>task gatlingPerformance(type: JavaExec, dependsOn: gatlingSmoke) { description = 'Runs a single gatling test as gradle task' classpath = sourceSets.test.runtimeClasspath
classpath += sourceSets.test.resources main = "io.gatling.app.Gatling" args = Eval.me("['-s', 'simulations.BlueGreenSimulation', " + // set up Gatling tree so the jar can find things "'-bf', 'src/test/resources/request-bodies'," + "'-df', 'src/test/resources/data'," + "'-sf', 'src/test/scala/simulations'," + "'-rf', '${buildDir}/reports/gatling']" )
}test { resources { srcDir = "src/test/resources" } }Don't we all!
In general, I like Gradle , but a few things about it infuriate me. This is one of them.
My configuration settings are still not being followed, but I've slacked off on working this until another logging issue gets resolved in our host project. I'm hoping the fix will also fix my problem.