Ok - I've installed 1.5.3b1 and replaced the wrapper script by HEAD. Install dir: C:\apache-ant-1.5.3Beta1
Test 1: ln -s /cygdrive/c/apache-ant-1.5.3Beta1/bin/ant /usr/local/bin/ant without modification: ANT_HOME=/cygdrive/c/apache-ant-1.5.3Beta1 with modification: expr: warning: unportable BRE: `^/.*': using `^' as the first character of the basic regular expression is not portable; it is being ignored ANT_HOME=/cygdrive/c/apache-ant-1.5.3Beta1 with '/.*' instead of '^/.*': ANT_HOME=/cygdrive/c/apache-ant-1.5.3Beta1 Test 2: ln -s /cygdrive/c/apache-ant-1.5.3Beta1 /usr/local/ant cd /usr/local/bin ln -s ../ant/bin/ant ant without modification: shows the buggy behavior with modification: same as test 1 with '/.*' instead of '^/.*': same as test 1 So basically, the modification works as expected. Stefan --- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > Hi, > > please take a look at > <http://issues.apache.org/bugzilla/show_bug.cgi?id=17721>. I can > reprodice this bug, but I'm afraid that the proposed patch will break > Cygwin - as I have no idea how it handles absolute paths. > > The change would be in line 54 of the ant wrapper script (CVS HEAD), > instead of > > if expr "$link" : '.*/.*' > /dev/null; then > > we'd use > > if expr "$link" : '^/.*' > /dev/null; then > > Oh, to run into this code, you must not set ANT_HOME and the script > you invoke must be a symlink (is this possible on Cygwin?) to the > real > script. > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ===== Stefan Moebius <[EMAIL PROTECTED]> Wurzener Str. 43 +49 351 8475827 01127 Dresden +49 172 8739617 __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com