require 'formula' # This formula serves as the base class for several very similar # formulae for Amazon Web Services related tools. class AmazonWebServicesFormula &1 # ... redirect fd3 to stdout +exec 4>&2 # ... redirect fd4 to stderr + +# ... execute the java, sending stderr to stdout (so it gets grepped), +# but stdout goes to fd3 (the preserved real stdout) +# and the grepped output goes to fd4 (the preserved stderr) +"$JAVA_HOME/bin/java" $EC2_JVM_ARGS $cygprop -classpath "$CP" com.amazon.aes.webservices.client.cmd.$CMD "$@" \ + 2>&1 >&3 | grep -v '^\[Deprecated\] Xalan' >&4