how to do cvs check-in check-out using ant.

Discussion in 'Java' started by vijaygoyal16@gmail.com, Dec 21, 2006.

  1. Guest

    Hi, I want to do check-in check-out using ANT.
    I have used following commands.

    <target name="checkOutFromCVS" >
    <!--<cvs command="-q diff -u -N" output="patch.txt"/>-->
    <cvs cvsRoot="${cvs.server.root}"
    package="${cvs.server.package}"
    dest="${cvs.server.destination}"
    />
    </target>

    <target name="checkOutFromCVS1" >
    <!--<cvs command="-q diff -u -N" output="patch.txt"/>-->
    <cvs command="update -A -d"/>
    </target>

    I am getting following errors:-
    checkOutFromCVS:
    [cvs] Caught exception: CreateProcess: cvs
    -d:pserver:username@server:path
    checkout ${cvs.server.package} error=2

    checkOutFromCVS1:
    [cvs] Caught exception: CreateProcess: cvs update -A -d error=2


    Can anyone tell me why this error is coming?
    Or can anyone provide the correct commands to do cvs check-in check-out
    using ANT including ENV. variable.

    Thanks in Advance.

    Regards
    Vijay
    , Dec 21, 2006
    #1
    1. Advertising

  2. wrote:
    > Hi, I want to do check-in check-out using ANT.
    > I have used following commands.
    >
    > <target name="checkOutFromCVS" >
    > <!--<cvs command="-q diff -u -N" output="patch.txt"/>-->
    > <cvs cvsRoot="${cvs.server.root}"
    > package="${cvs.server.package}"
    > dest="${cvs.server.destination}"
    > />
    > </target>
    >
    > <target name="checkOutFromCVS1" >
    > <!--<cvs command="-q diff -u -N" output="patch.txt"/>-->
    > <cvs command="update -A -d"/>
    > </target>
    >
    > I am getting following errors:-
    > checkOutFromCVS:
    > [cvs] Caught exception: CreateProcess: cvs
    > -d:pserver:username@server:path
    > checkout ${cvs.server.package} error=2
    >
    > checkOutFromCVS1:
    > [cvs] Caught exception: CreateProcess: cvs update -A -d error=2
    >
    >
    > Can anyone tell me why this error is coming?


    Looks to me as if the cvs executable is not in PATH.

    Arne
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=, Dec 24, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. NullBock

    Problem running CVS via Ant

    NullBock, Aug 5, 2004, in forum: Java
    Replies:
    1
    Views:
    509
    Greg Larkin
    Aug 5, 2004
  2. Replies:
    2
    Views:
    2,560
  3. ddog
    Replies:
    3
    Views:
    594
    Jason Whaley
    Aug 4, 2007
  4. Replies:
    1
    Views:
    597
    GArlington
    Aug 31, 2007
  5. David Ross
    Replies:
    5
    Views:
    153
    Nicholas Van Weerdenburg
    Dec 5, 2004
Loading...

Share This Page