I use something similar to this




<property name="build.root" value="C:\BUILD_ROOT"/>
<property name="build.folder" value="${folder.name}"/>

<property name="build.source.dir"
value="${build.root}\${build.folder}\source"/>

<property name="cvsrootproject"
value=":pserver:[EMAIL PROTECTED]:c:/cvs/repository/location"/>




<target name="CheckoutMostRecent">
      <cvs cvsroot="${cvsrootproject}" package="package1"
dest="${build.source.dir}"/>
      <cvs cvsroot="${cvsrootproject}" package="package2"
dest="${build.source.dir}"/>
      <cvs cvsroot="${cvsrootproject}" package="package3"
dest="${build.source.dir}"/>
      <cvs cvsroot="${cvsrootproject}" package="package4"
dest="${build.source.dir}"/>
      <cvs cvsroot="${cvsrootproject}" package="package5"
dest="${build.source.dir}"/>
</target>



if you you want a specific tagged version then:


<property name="project.version" value="TagValue"/>

<target name="CheckoutVersion">
      <cvs cvsroot="${cvsrootproject}" package="package1"
tag="${project.version} "dest="${build.source.dir}"/>
      <cvs cvsroot="${cvsrootproject}" package="package2"
tag="${project.version} dest="${build.source.dir}"/>
      <cvs cvsroot="${cvsrootproject}" package="package3"
tag="${project.version} dest="${build.source.dir}"/>
      <cvs cvsroot="${cvsrootproject}" package="package4"
tag="${project.version} dest="${build.source.dir}"/>
      <cvs cvsroot="${cvsrootproject}" package="package5"
tag="${project.version} dest="${build.source.dir}"/>
</target>


Good Luck

DT




|---------+---------------------------->
|         |           <pritesh.saharey@|
|         |           wipro.com>       |
|         |                            |
|         |           06/09/2005 12:10 |
|         |           PM               |
|         |           Please respond to|
|         |           "Ant Users List" |
|         |                            |
|---------+---------------------------->
  
>------------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                 |
  |       To:       <user@ant.apache.org>                                       
                                                 |
  |       cc:                                                                   
                                                 |
  |       bcc:                                                                  
                                                 |
  |       Subject:  Baseline Get from PVCS                                      
                                                 |
  
>------------------------------------------------------------------------------------------------------------------------------|





Hi All,
         I want to use ants PVCS task but unable to use it, as I am not
getting what all has to be there, I tried doing something like this

<project name="TABS" default="all" basedir=".">
    <target name="pvcs-get" description="Get from PVCS">
              <pvcs repository="C:\Serena\ChangeMan\Dimensions\9.1\prog">
                  <pvcsproject name="odcwash"/>
     </pvcs>
             </target>
             <target name="all" depends="pvcs-get">
                 <echo> Don't know its working or not</echo>
             </target>
</project>

But unable to sucessed in getting the code,

PVCS server is in remote machine and client is different machine, so I
want to get(recursive) from server by running build.xml file in client
m/c
Any help will be highly appreciated.

Thanks

Pritesh



Confidentiality Notice


The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to