Sorry, I did that allready...

As i mentioned, the problem doesn't seem to be a special cvs problem, as the
~/.cvspass (or so)
file is created and i am able to copy the commands from the error message
and to run them manually.
Eg:

Error message is

C:\DEPLOY\config\build.xml:106: java.io.IOException: CreateProcess: cvs -d
:pserver:[EMAIL PROTECTED]:/cvsdata history -a error=2
--- Nested Exception ---
java.io.IOException: CreateProcess: cvs -d
:pserver:[EMAIL PROTECTED]:/cvsdata history -a error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Unknown Source)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.jav
a:509)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
        at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:181)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

running
    cvs -d :pserver:[EMAIL PROTECTED]:/cvsdata history -a

works fine.


----- Original Message -----
From: "Juraj Lenharcik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 2:41 PM
Subject: RE: Question: How to make ant running with cvs


hi,

you have to login before you star the script.


cu


-----Original Message-----
From: Alexander Saupp [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 19. Juni 2001 14:39
To: [EMAIL PROTECTED]
Subject: Question: How to make ant running with cvs


Hi,

i tried to make Ant running with CVS. Is there an additional jar i need?
I guess no. A cvs client is
installed, up and running, I am able to access the CVS server on cmd
line.

If I create ant tasks like the following, I receive the exception above:

 <target name="getJSPs">
  <cvs cvsRoot=":pserver:[EMAIL PROTECTED]:/cvsdata" command="history
-a"/>
 </target>

This is runinng on command line, but not in ant.

getJSPs:

BUILD FAILED

C:\DEPLOY\config\build.xml:106: java.io.IOException: CreateProcess: cvs
-d :pserver:[EMAIL PROTECTED]:/cvsdata history -a error=2
--- Nested Exception ---
java.io.IOException: CreateProcess: cvs -d
:pserver:[EMAIL PROTECTED]:/cvsdata history -a error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Unknown Source)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute
.java:509)
        at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
        at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:181)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 1 second

CVS server uses passowrd authentication, may be that's a problem? How to
configure cvs to get a one line login?
cvs -d :pserver:asaupp:[EMAIL PROTECTED]:/cvsdata login
wasn't working.

Any idea what the reason could be? Thanks.

Alex


Reply via email to