aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes connecting to cvs using ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "connecting to cvs using ANT" Watch "connecting to cvs using ANT" New topic
Author

connecting to cvs using ANT

bill shone
Greenhorn

Joined: Feb 10, 2004
Posts: 1
hi all,
im trying to checkout a doucment that i know exists on my cvs server. Ive tried two ways of connecting to the server but get error messages:
"error=2" something to do with not having cvs 'in the path'. I dont understand what that means...im using an ANT build file from within ecplise to do this.
has anyone come across this error and knows how to fix it AND has anyone got code that they have used successfully to connect to a cvs server.
much appreciated
bill
B Hayes
Ranch Hand

Joined: Feb 07, 2003
Posts: 61
Hi, I don't know if this helps, but here's some code snippets of one of my ANT scripts for CVS:
<property name="project.home" value="${env.project_home}"/>
<property name="cvs.root" value="${env.cvsroot}" />
.
.
.
<!--Checkout source files from CVS-->
<cvs dest="${project.home}"
cvsroot="${cvs.root}"
tag="blahRelease_1_0"
package="systems/java/projects/blah/src/blahproject"/>

I have seen some errors in the past if your cvsroot directory is not set-up correctly. I do this as an evironment variable, since I have a Perl install script that kicks off my ANT build...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: connecting to cvs using ANT
 
Similar Threads
JNDI over HTTPS?
ANT scp task stopped working in Java 1.6?
unable to checkout using CVS
CVS connection problem
Check out with CVS via ANt Script