Summary: | ant has problems with nohup | ||
---|---|---|---|
Product: | Ant | Reporter: | Bjoern Teipel <bt> |
Component: | Core | Assignee: | Ant Notifications List <notifications> |
Status: | RESOLVED DUPLICATE | ||
Severity: | major | CC: | jglick |
Priority: | P2 | ||
Version: | 1.6.5 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
Bjoern Teipel
2006-03-08 17:05:46 UTC
Did you try running Ant with -noinput? This may help with nohup. --DD No i didn't try this parameter. I'll test it and will come back later. You need to redirect all standard handles to /dev/null: nohup ant ....... >/dev/null 2>/dev/null </dev/null& Why should i do this, it wasn't necessary at version 1.6.2 ? If I'm doing this way, all log information which is beeing written to STDOUT is lost. I would think you changed Java version as well. In order to preserve output do the following: nohup ant ... >build.log 2>&1 </dev/null& tail -f build.log Or maybe 2>&1 should be before >build.log - I always forget how it implemented. -noinput seems to solve the problem with nohup. What has changed from ant 1.6.2 to 1.6.5 that this parameter must be set ? It's really annoying to type always -noinput, the command lines already long enough... ;-) Ant recently added the ability to do input. Before this was done, Ant never did any input, so the problem never occured. -noinput allows to get that this older beahvior. Glad to hear it works for you. --DD PS: I would guess </dev/null should also work, but I'm not sure. |