I want to run a jar file with parameters located at C:/Users/nwuser/FitNesse/fitnesse-standalone.jar in my gradle script. I know how to do it without parameters:
args is an array, so simply supply your arguments as such:
task runJar(dependsOn:jar) << { javaexec { main="-jar"; args = [ "C:/Users/nwuser/FitNesse/fitnesse-standalone.jar", "-c", "FrontPage?suite&format=text" ] } }