You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@locus.apache.org on 2000/12/02 20:44:30 UTC

cvs commit: jakarta-ant/src/bin ant

donaldp     00/12/02 11:44:30

  Modified:    src/bin  ant
  Log:
  Patched ant to run under Cygwin. Patch supplied by Peter Seibel <pe...@javamonkey.com>
  
  Revision  Changes    Path
  1.7       +11 -0     jakarta-ant/src/bin/ant
  
  Index: ant
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/bin/ant,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ant	2000/08/05 15:30:19	1.6
  +++ ant	2000/12/02 19:44:30	1.7
  @@ -4,6 +4,12 @@
     . $HOME/.antrc
   fi
   
  +# Cygwin support.
  +if [ "$OSTYPE" == 'cygwin32' ]; then
  +  ANT_HOME=`cygpath -u $ANT_HOME`
  +  JAVA_HOME=`cygpath -u $JAVA_HOME`
  +fi
  +
   if [ "$ANT_HOME" = "" ] ; then
     # try to find ANT
     if [ -d /opt/ant ] ; then 
  @@ -65,6 +71,11 @@
     else
       ANT_OPTS=-Djikes.class.path=$JIKESPATH
     fi
  +fi
  +
  +# More Cygwin support
  +if [ "$OSTYPE" == 'cygwin32' ]; then
  +  LOCALCLASSPATH=`cygpath -p -w "$LOCALCLASSPATH"`
   fi
   
   $JAVACMD -classpath $LOCALCLASSPATH -Dant.home=${ANT_HOME} $ANT_OPTS org.apache.tools.ant.Main $@
  
  
  

Re: cvs commit: jakarta-ant/src/bin ant

Posted by Peter Donald <do...@apache.org>.
At 12:17  2/12/00 -0800, you wrote:
>on 12/2/2000 11:44 AM, "donaldp@locus.apache.org" <do...@locus.apache.org>
>wrote:
>
>> Patched ant to run under Cygwin. Patch supplied by Peter Seibel
>> <pe...@javamonkey.com>
>> 
>
>In case you missed my message to the list, I'm -1 on that patch until it is
>fixed to properly work under cygwin.

Soz - I will revert .... is the mailing list down because I seem to have
some messages missing ?

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: cvs commit: jakarta-ant/src/bin ant

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

> Hmmm. Just out of curiosity, when is OSTYPE set to "cygwin32" and when to
> "cygwin". As far as I was able to test it did "work under cygwin". But that
> was only on my system. Do some versions of the cygnus toolkit set OSTYPE to
> "cygnus"?

I suspect you are on Win2000 or NT, right? Well, Win98 reports "cygwin".

> P.S. Thanks to Peter Donald for patching my patch and putting it in. It
> works great on my system. (Though I wonder if the quotes I had around the
> $LOCALCLASSPATH in the java invocation might be necessary if either
> ANT_HOME, JAVA_HOME, or the pre-existing CLASSPATH had directories with
> spaces in them.)

Yes, there should also be quotes around that.

-jon

-- 
Honk if you love peace and quiet.



RE: cvs commit: jakarta-ant/src/bin ant

Posted by Peter Seibel <pe...@javamonkey.com>.
Hmmm. Just out of curiosity, when is OSTYPE set to "cygwin32" and when to
"cygwin". As far as I was able to test it did "work under cygwin". But that
was only on my system. Do some versions of the cygnus toolkit set OSTYPE to
"cygnus"?

-Peter

P.S. Thanks to Peter Donald for patching my patch and putting it in. It
works great on my system. (Though I wonder if the quotes I had around the
$LOCALCLASSPATH in the java invocation might be necessary if either
ANT_HOME, JAVA_HOME, or the pre-existing CLASSPATH had directories with
spaces in them.)

-----Original Message-----
From: Jon Stevens [mailto:jon@latchkey.com]
Sent: Saturday, December 02, 2000 12:18 PM
To: ant-dev@jakarta.apache.org
Cc: donaldp@apache.org
Subject: Re: cvs commit: jakarta-ant/src/bin ant


on 12/2/2000 11:44 AM, "donaldp@locus.apache.org" <do...@locus.apache.org>
wrote:

> Patched ant to run under Cygwin. Patch supplied by Peter Seibel
> <pe...@javamonkey.com>
>

In case you missed my message to the list, I'm -1 on that patch until it is
fixed to properly work under cygwin.

-jon

--
Honk if you love peace and quiet.



Re: cvs commit: jakarta-ant/src/bin ant

Posted by Jon Stevens <jo...@latchkey.com>.
on 12/2/2000 11:44 AM, "donaldp@locus.apache.org" <do...@locus.apache.org>
wrote:

> Patched ant to run under Cygwin. Patch supplied by Peter Seibel
> <pe...@javamonkey.com>
> 

In case you missed my message to the list, I'm -1 on that patch until it is
fixed to properly work under cygwin.

-jon

-- 
Honk if you love peace and quiet.