views:

264

answers:

1

Is it possible to use Ant scripts to checkin/checkout source code elements while using the CCRC plugin to eclipse? I am getting an error message saying that the element the script is attempting to check out is not part of the VOB, but of course it is there and I can check it out manually.

A: 

It should be possible to use those ant ClearCase tasks with CCRC views ("web views" which are anologous to snapshot views)

A script like this one should work:

<project name="Testing ClearCase    " default="CC" basedir=".">
 <target name="CC">
    <property name="FileSrc" value="MyView/MyVob/MyDir"/>
    <property name="dist" value="dist"/>
    <cccheckout viewpath="${FileSrc}/myFile"
        reserved="false"
        nowarn="true"
        comment="Auto Build from script"
        failonerr="false" />
    <copy file="${dist}/myFile" tofile="${FileSrc}/myFile"/>
    <cccheckin viewpath="${FileSrc}/myFile"
        comment="Checked in by myFile.xml ANT script"
        nowarn="false"
        failonerr="false"
        identical="true"/>
  </target>
</project>

But you need to make sure your current directory is (in this script) just above where you update your web CCRC view "myView".

The only issues I know of are:

VonC