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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -