I wrote a java application to kick off a build script and capture the build script output. Without fail, the capture stops after exactly 10 minutes. The build script continues on until completion without fail. Why does my app stop logging after 10 minutes?
Ernest Friedman-Hill
,
author and iconoclast
staff
Sorry, I guess that is why I am still a greenhorn. It is a web based application that stores Ant scripts within a MySQL database writes them to Windows based computers then kicks off the Ant build.xml. I use a buffered reader to read the output from the process and do error checking such as CVS tag does not exist, etc. I then write it out to a log. It essentially passes the Ant script output through Java. It works for 10 minutes then stops. The Ant build completes but the Ant output is incomplete.
Ernest Friedman-Hill
,
author and iconoclast
staff
Perhaps it's just that you're not flushing the output. Does the log magically become complete if you call flush() on the Writer or OutputStream you're sending it to?