Hi,
I was trying to check out files from CVS, compile them and build a jar out
of it. When i try to checkout the files from the CVS it gives an error, if i
comment this piece of code and run my build file only to compile and create
a jar file it works fine.
The error displayed while checking out is:
Buildfile: build.xml
cvscheckout:
BUILD FAILED
F:\ixappDeployed\ixapp\build.xml:27: 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)
The piece of code in my build.xml is as below :
-----------------------------------------------
<!-- Property holding checkout directory -->
<property name="co.dir" value="f:/venus" />
<property name="MODNAME" value="venus" />
<!-- CheckOut files from cvs -->
<target name="cvscheckout">
<mkdir dir="${co.dir}" />
<cvs
cvsRoot=":pserver:anoop@localhost:/home/cvs/master"
package="${MODNAME}"
dest="${co.dir}"
/>
<cvs dest="${co.dir}" command="update" />
</target>
<!-- Create the build directory structure used by compile -->
<target name="prepare" depends="cvscheckout">
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
Any kind of help is appreciated.
Thanx,
Anoop.