I have an exec
task whose output I am putting into a property using the outputproperty
attribute. The command may print some errors to stderr, I do not want the errors to be included in the output (since the output is being fed into another command) but rather to be printed out to the user. So I am redirecting the output and error into separate properties and echo
the error property. It seems kind of a hack to have to echo
the error. Is it possible to redirect the output of an exec but leave error on stderr or stdout? I assume it means setting the error
attribute to some magical value but I cannot figure out what that value is.
相关问题
- How can I have my ant task pass or fail based on t
- Ant inheriting Maven properties
- How can I zip multiple folders individually with a
- Class in jar not found at runtime, but was used to
- Regex to select last line in a multi-line string
相关文章
- Passing command line arguments to Java via ant bui
- ANT - Could not load a dependent class com/jcraft/
- library resolve to a path with no project.properti
- ant file that depends on another ant file
- android-sdk/tools/ant/build.xml:698: null returned
- ant jar's mainclass
- Integrate Ant builder into Eclipse: Error “Variabl
- How can I avoid this Ant Build error?
Try removing
error
orerrorproperty
attributes and addinglogError="true"
.See http://ant.apache.org/manual/Tasks/exec.html