FitNesse/Gradle command line output into file -
i trying start fitnesse tests using command line in gradle.
build.gradle
exec { ignoreexitvalue = true commandline = [ 'java', '-cp', fitnesseclasspath, // fitnesseclasspath set somewhere else 'fitnessemain.fitnessemain', '-c', "${suite}?suite&format=xml", // suite set somewhere else ] }
now want results written xml file (let's call output.xml) , not command window. how can achieve that?
here go, replace arguments.
exec { commandline = ['ls'] args = [ "./", ] standardoutput = new fileoutputstream("./hello.txt") }
Comments
Post a Comment