org.apache.commons.io.FileUtils.copyFile(source,dest);
Runtime rt = Runtime.getRuntime();
Process proc =rt.exec(append);
BufferedInputStream stdInput = new BufferedInputStream(proc.getInputStream());
int read=0;
byte[] output = new byte[1024];
String strFile = null;
while ((read = stdInput.read(output)) != -1)
{
strFile+=new String(output,0,read);
System.out.println(output[read]);
}
String message = org.apache.commons.io.IOUtils.toString(stdInput); ///error
IOUtils.toString()
is not working and returning null value. I am using Jira 7.13.0.