You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Peter Seibel <pe...@javamonkey.com> on 2000/12/02 19:09:43 UTC

[PATCH] tweak to bin/ant to support cygwin32

This patch makes a couple changes to bin/ant that make it possible to run it
under cygwin32 with ANT_HOME and JAVA_HOME set in a way that will also work
with ant.bat in a command window. I.e. you set them Windows-style: c:/ant
and c:/jdk1.3.

I'm hoping someone will commit this for me or point out some better way to
run ant from bash on a windows box. Thanks.

-Peter

Re: [PATCH] tweak to bin/ant to support cygwin32

Posted by Jon Stevens <jo...@latchkey.com>.
on 12/2/2000 10:09 AM, "Peter Seibel" <pe...@javamonkey.com> wrote:

> This patch makes a couple changes to bin/ant that make it possible to run it
> under cygwin32 with ANT_HOME and JAVA_HOME set in a way that will also work
> with ant.bat in a command window. I.e. you set them Windows-style: c:/ant
> and c:/jdk1.3.
> 
> I'm hoping someone will commit this for me or point out some better way to
> run ant from bash on a windows box. Thanks.
> 
> -Peter


This patch isn't complete...take a look at this shell script (which is known
to work fine under cygwin)...you are missing an || for "cygwin" instead of
just "cygwin32".

<http://www.working-dogs.com/turbine/cvsweb/index.cgi/turbine/build/build-tu
rbine.sh?rev=1.24&content-type=text/x-cvsweb-markup>

So, please submit a patch that is more complete.

thanks,

-jon

-- 
Honk if you love peace and quiet.



RE: [PATCH] tweak to bin/ant to support cygwin32

Posted by Peter Seibel <pe...@javamonkey.com>.
Looks good. Thanks.

-Peter

-----Original Message-----
From: Peter Donald [mailto:donaldp@apache.org]
Sent: Saturday, December 02, 2000 5:50 PM
To: ant-dev@jakarta.apache.org
Subject: RE: [PATCH] tweak to bin/ant to support cygwin32


At 03:11  2/12/00 -0800, you wrote:
>Looking at the script again, I realized that my first patch was a bit
sloppy
>in a way nobody complained about: here's another patch to deal with the
>possibility that ANT_HOME and/or JAVA_HOME may not be set which the rest of
>the script allows. Thanks.

Okay done. Could you retry it and make sure I got it right ;)


Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


RE: [PATCH] tweak to bin/ant to support cygwin32

Posted by Peter Donald <do...@apache.org>.
At 03:11  2/12/00 -0800, you wrote:
>Looking at the script again, I realized that my first patch was a bit sloppy
>in a way nobody complained about: here's another patch to deal with the
>possibility that ANT_HOME and/or JAVA_HOME may not be set which the rest of
>the script allows. Thanks.

Okay done. Could you retry it and make sure I got it right ;)


Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


RE: [PATCH] tweak to bin/ant to support cygwin32

Posted by Peter Seibel <pe...@javamonkey.com>.
Looking at the script again, I realized that my first patch was a bit sloppy
in a way nobody complained about: here's another patch to deal with the
possibility that ANT_HOME and/or JAVA_HOME may not be set which the rest of
the script allows. Thanks.

-Peter

-----Original Message-----
From: Peter Donald [mailto:donaldp@apache.org]
Sent: Saturday, December 02, 2000 2:06 PM
To: ant-dev@jakarta.apache.org
Subject: Re: [PATCH] tweak to bin/ant to support cygwin32


At 10:09  2/12/00 -0800, you wrote:
>This patch makes a couple changes to bin/ant that make it possible to run
it
>under cygwin32 with ANT_HOME and JAVA_HOME set in a way that will also work
>with ant.bat in a command window. I.e. you set them Windows-style: c:/ant
>and c:/jdk1.3.
>
>I'm hoping someone will commit this for me or point out some better way to
>run ant from bash on a windows box. Thanks.

Okay I modified it a bit to work like turbines script. Could you check it
still works for you ?

Thanks for the patch


Cheers,

Pete

*------------------------------------------------------*
| "Computers are useless. They can only give you       |
|            answers." - Pablo Picasso                 |
*------------------------------------------------------*

Re: [PATCH] tweak to bin/ant to support cygwin32

Posted by Peter Donald <do...@apache.org>.
At 10:09  2/12/00 -0800, you wrote:
>This patch makes a couple changes to bin/ant that make it possible to run it
>under cygwin32 with ANT_HOME and JAVA_HOME set in a way that will also work
>with ant.bat in a command window. I.e. you set them Windows-style: c:/ant
>and c:/jdk1.3.
>
>I'm hoping someone will commit this for me or point out some better way to
>run ant from bash on a windows box. Thanks.

Okay I modified it a bit to work like turbines script. Could you check it
still works for you ? 

Thanks for the patch


Cheers,

Pete

*------------------------------------------------------*
| "Computers are useless. They can only give you       |
|            answers." - Pablo Picasso                 |
*------------------------------------------------------*