AntからCVSアクセスでエラー

前の日記でインストールしたCVSNTを使ってAntからアクセスしようとしてた。
こんな感じで。





でも、なぜか怒られた。


[cvs] cvs checkout: Empty password used - try 'cvs login' with a real password
[cvs] cvs [checkout aborted]: authorization failed: server xxx rejected access to /cvsrepo for user ykhr
BUILD FAILED

Eclipseから接続するとOKなので、パスワードは絶対合ってるはず。
なのに認証エラーになってる。しかもパスワードが空??


原因を調べていると、AntのマニュアルにCVSNTをクライアントとして使ったのときの
注意が載ってた。

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.
AntのCvsタスクのマニュアルより

よくわからんが、CVSNTは.cvspassファイルじゃなくてレジストリを使うから
cvspassタスクを使ってもだめだよーんってなことらしい。
そして、回避策がリンクになってるBugzillaにあった。

Instead of using the cvspass task and passfile attributes on your cvs task just
add the password to your repository path like so:


:pserver:USER:PASSWORD@server:/path/to/cvsroot


cvspassタスクの代わりに、CVSROOTを上記のように指定するらしい。
ふーん。