On Sun, 2008-04-06 at 15:47 -0700, mvfranz wrote:
> I would like to fix this in the ecj script for OS X, however I spent the
> afternoon trying to script something together that would strip -J parameters
> and pass them to the JVM that runs ecj. I get this to work for some
> parameters but not others. Sometimes quoting works sometimes it doesn't.
>
> Is there an installation of ecj that handles the -J parameters correctly?
> Anyone have bash scripts to handle this?
I did this a while ago to bootstrap OpenJDK:
ARGS=""
for ARG in "$@"; do
OUT=`echo "$ARG" | grep "^-J"`
if [ "$OUT" = "" ]; then
ARGS="$ARGS $ARG"
fi
done
Maybe that helps.
- twisti