Are you on Windows? On cvsnt, the password is stored inside the
Registry. The cvs task can't get to it. I've put the password into the
CVSROOT. Since we don't check anything back into CVS from Ant, it's
really just a read-only CVSROOT.

Take a look at the <cvs> task in the Ant manual, and you'll see the following:

CVSNT Note: CVSNT prefers users to store the passwords inside the
registry. If the cvspass task and the passfile attribute don't seem to
work for you, the most likely reason is that CVSNT ignores your
.cvspass file completely. See bug zilla report 21657 for recommended
workarounds.

Bugzilla report can be found at
http://issues.apache.org/bugzilla/show_bug.cgi?id=21657#c5

If you're on Unix, the .cvspass file is stored under your $HOME directory.

On Dec 28, 2007 7:51 AM, Michał Letyński <[EMAIL PROTECTED]> wrote:
> Thanks for your advice. I wrote separate task which extend
> AbstractCvsTask. I got one more question
> about cvs. One thing which is magic for me is how cvs connect to cvs
> server. Im making only diff but i dont put
> a server host, login and pass. I assume that this cvs is taking login
> and server from CVS directory which is inside
> project (there is a Root file) but what about password ? I looked to the
> code and found that it search a psss in
> $HOME/.cvspass. But i dont have such file. Magic :>
>
> David Weintraub pisze:
>
> > As you're finding out, that's the way "cvs" outputs that command, and
> > all the CVS ant task does is do a system call to the "cvs" executable.
> > Whatever CVS outputs, Ant does too.
> >
> > There maybe a way of filtering the output of one task with the input
> > of another. I think there is something about resource on this, but I
> > am not too sure. Remember reading something about this in the Ant
> > manual.
> >
> > You could manually rebuild this particular task, but
> >
> > On Dec 27, 2007 8:33 AM, Michał Letyński <[EMAIL PROTECTED]> wrote:
> >
> >> I want to diif two branches. Im using this command:
> >> command="diff --brief -r rel-1-patches -r rel-2-patches"
> >>
> >> And my output looks like this:
> >> RCS file: /usr/local/cvs/webproject/src/doc/taglibs/file.xml,v
> >> retrieving revision 1.2
> >> retrieving revision 1.2.4.1
> >> diff --brief -r1.2 -r1.2.4.1
> >> Files /tmp/cvsRXzgDm and /tmp/cvsX8zvMs differ
> >>
> >> I dont like this output. Is it possible to get only one line per one file ?
> >> e.g
> >> cmjsp/src/doc/taglibs/file.xml
> >> cmjsp/src/doc/taglibs/file2.xml
> >> etc.
> >>
> >> Or can i change the path of the file to the output ?
> >> e.g
> >> test/WEB-INF/file.xml
> >> test/WEB-INF/file2.xml
> >>
> >> Is it possible to diff not all directroies of those two branches ? For
> >> e.g i dont want to diff src directory.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
--
David Weintraub
[EMAIL PROTECTED]

Reply via email to