You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by John Morrison <jo...@ntlworld.com> on 2002/05/28 22:36:30 UTC

[PATCH] Cygwin ~/.cvspass

Hi.

I've been trying to get the cvs tasks to work
under cygwin.  I've modified the ant (shell
script) to, if in cygwin, add 
-Dcygwin.user.home=`cygdrive --path --windows $HOME`
to $ANT_OPTS.  This is then detected in both
CVSPass.java and AbstractCvsTask.java.

In full debug/verbose mode, ant is detecting
(and using my *actual*) cygwin home directory
~/.cvspass.

However (there's always an always isn't there :)
I'm still getting an error when trying to do
cvs instructions.  If anybody has the time,
I'd appreciate any pointers.

My environment is a standard cygwin installation
to c:\cygwin.  Home is c:\cygwin\home\john.

Help appreciated :)

Thanks,

J.

RE: [PATCH2] Cygwin ~/.cvspass

Posted by John Morrison <jo...@ntlworld.com>.
Hi All,

Fixed the bug (wasn't really, it just needed the
destination directory to exist).

I hope the patch is up to scratch 'cause its
been an itch of mine for ages!

J.

RE: [PATCH] Cygwin ~/.cvspass

Posted by John Morrison <jo...@ntlworld.com>.
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> On Tue, 28 May 2002, John Morrison <jo...@ntlworld.com>
> wrote:
> 
> > I've modified the ant (shell script) to, if in cygwin, add
> > -Dcygwin.user.home=`cygdrive --path --windows $HOME` to $ANT_OPTS.
> > This is then detected in both CVSPass.java and AbstractCvsTask.java.
> 
> Looks good to me, doesn't any harm on the Unix systems I've tried, 

That's good in itself - I can't test it in anything but Windows or
Cygwin.

> but I cannot test it on Cygwin itself.
> 
> > I'm still getting an error when trying to do
> > cvs instructions.
> 
> It may help to know which error you get 8-)

Drats.  In the middle of creating this email, what did I do? I
realised that the directory doesn't exist.  Guess what creating
the directory did... :(

Expect another patch soon which, in addition to this, creates
the directory too!

I thought cvs did this...?  But then, we arn't using the
co -d foodir flag...

J.

PS - is this likely to get into the ant code base?

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [PATCH] Cygwin ~/.cvspass

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 28 May 2002, John Morrison <jo...@ntlworld.com>
wrote:

> I've modified the ant (shell script) to, if in cygwin, add
> -Dcygwin.user.home=`cygdrive --path --windows $HOME` to $ANT_OPTS.
> This is then detected in both CVSPass.java and AbstractCvsTask.java.

Looks good to me, doesn't any harm on the Unix systems I've tried, but
I cannot test it on Cygwin itself.

> I'm still getting an error when trying to do
> cvs instructions.

It may help to know which error you get 8-)

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>