your property is named "co.dir" while in the cvs task you reference "codir",
which doesn't exist. Since it doesn't exist, the cvs task is passing an
empty string. You can see this in the error message:
F:\ixappDeployed\ixapp\build.xml:26: java.io.IOException: CreateProcess:
cvs -d :pserver:anoop@localhost:/home/cvs/master checkout venus er
ror=2
Notice there is no directory specified after the "-d" argument, thus the cvs
program is attempting to interpret
":pserver:anoop@localhost:/home/cvs/master" as a directory instead of the
cvsroot.
Try fixing the property name and see if that gets you going.
--jason
-----Original Message-----
From: Anoop [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 7:14 PM
To: [EMAIL PROTECTED]
Subject: Problem with CVS check out
Hi all,
I am trying to check out files from the CVS and then build them.
This is the piece of code in my build.xml file -
<!-- Property holding checkout directory -->
<property name="co.dir" value="f:/venus" />
<!-- CheckOut files from cvs -->
<target name="cvscheckout">
<mkdir dir="${codir}" />
<cvs
cvsRoot=<Root for my CVS>
package="venus"
dest="${codir}"
/>
<cvs dest="${codir}" command="update"/>
</target>
When i try this it is giving the following error -
F:\ixappDeployed\ixapp\build.xml:26: java.io.IOException: CreateProcess:
cvs -d :pserver:anoop@localhost:/home/cvs/master checkout venus er
ror=2
--- Nested Exception ---
java.io.IOException: CreateProcess: cvs -d
:pserver:anoop@localhost:/home/cvs/master checkout venus error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:551)
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)
Please help me out in solving this problem.
Thanks all,
Anoop.