Newbie to Ant and clearantlib

Help
GMO
2008-01-29
2013-04-17
  • GMO

    GMO - 2008-01-29

    Hi,

    First of all sorry if this is a stupid question or easy answer but... I've trying to learn how to automate using ANT and clearantlib. I am running into issues upon building the basic script.  I am in a Windows XP environment running an OLD version of ClearCase 4.2.  I am just trying to get the version of ClearCase installed on my machine and get the following errors. 

    Thanks in advance.
    Gary 
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

    ANT_HOME and JAVA_HOME are set in my environment too.

    Simple Build Script
    <project name="test" default="cc-lt-check"  xmlns:ca="antlib:net.sourceforge.clearantlib">       
            <target name="cc-lt-check">
                <ca:ccversion ccversionproperty="ccversion" ccltproperty="cclt"/>
                <fail if="cclt">Error: Full ClearCase is required ...</fail>
                <echo>Running ClearCase version ${ccversion}...</echo>
            </target>
        </project>

    CCLsVOB.xml:3: Problem: failed to create task or type antlib:net.sourceforge.clearantlib:ccversion
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.

    This appears to be an antlib declaration.
    Action: Check that the implementing library exists in one of:
            -C:\Program Files\Java\jdk1.5.0_14\tools\apache-ant-1.7.0\lib
            -C:\Documents and Settings\gorlick.MCS\.ant\lib
            -a directory added on the command line with the -lib argument
    Total time: 0 seconds

     
    • buildmeister

      buildmeister - 2008-04-22

      Make sure that you have "installed" clearantlib.jar, as described at http://clearantlib.sourceforge.net/, you can copy it to C:\Program Files\Java\jdk1.5.0_14\tools\apache-ant-1.7.0\lib in your case. Then try running the command again.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks