ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Moebius <stmoeb...@yahoo.com>
Subject Re: Cygwin tester needed
Date Wed, 26 Mar 2003 07:10:45 GMT
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 <bodewig@apache.org> 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: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 


=====
Stefan Moebius       <stmoebius@gmx.de> 
  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

Mime
View raw message