From: "Bill Burton" <[EMAIL PROTECTED]> > Hello Jose, > > Jose Alberto Fernandez wrote: > > > > Actually, is the other way around, for the time being you should not use > > any of the output attributes. > > Due to the way IO is manage by the current code. Notice also that all the > > outut redirection is done > > by Java so once the the ANT's VM ends IO has no where to go. > > > > What do the external process do when that happens it is upto the OS. > > When I wrote some similar functionality a while ago for <exec>, I made it > so that when detach="true", any value of the output attribute was passed > as an environment variable. In addition this forced execution through the > antRun script. In the antRun script, if the output environment variable > was set, it used shell redirection when running the program to write the > output to the specified file. That way, the detached program was > completely autonomous and had no dependencies on Ant's JVM. > > If you're interested, I could dig up the code that does this. >
The soltion right now does not rely on scripts. I think you have a good idea but I did not want to have to modify scripts for several OSs I do not have for testing. Maybe you could add those changes if and when the patch is accepted. Jose Alberto -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
