This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem: failed to create task or type stcheckout

Starteam Client Version : 17.3

SDK Version :17.3

ANT version :1.10.13

Still I am getting below exception, is there something i am missing?

Problem: failed to create task or type stcheckout
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.

  • Hi Kannan, there is not enough information, but maybe stcheckout was a batch file? in any case this is how you would checkout files using starteam command line:  admhelp.microfocus.com/.../Check Out Files co.htm

  • Thank you for the quick response. I will check the link which you shared,

    To give you more information, we are using ant build to checkout from StarTeam. and I suspect ant library has this StarTeam Task  library which is not compatible with the latest version of StarTeam client. Please find the below checkout target used. 

    <target name="getScripts" depends="cleanScripts">

    <!-- This will check out the build scripts -->
    <stcheckout
    servername="${build.scripts.st.server.name}"
    serverport="${build.scripts.st.server.port}"
    projectname="${build.scripts.st.server.project}"
    viewname="${build.scripts.st.server.view}"
    username="${build.scripts.st.server.username}"
    password="${build.scripts.st.server.password}"
    createworkingdirs="false"
    deleteuncontrolled="false"
    recursive="true"
    rootlocalfolder="${main.build.home}"
    rootstarteamfolder="/buildscripts"
    />

    <!--This will check out the build scripts for particular project -->
    <stcheckout
    servername="${build.scripts.st.server.name}"
    serverport="${build.scripts.st.server.port}"
    projectname="${build.scripts.st.server.project}"
    viewname="${build.scripts.st.server.view}"
    username="${build.scripts.st.server.username}"
    password="${build.scripts.st.server.password}"
    createworkingdirs="false"
    deleteuncontrolled="false"
    recursive="true"
    rootlocalfolder="${application.build.home}"
    rootstarteamfolder="/buildscripts/build_${application.name}"
    />
    </target>

    -- However,  it is working fine with ANT version 1.8.2. But, we would like to update ANT latest version and endup getting exception.

    Thanks,

    Kannan

  • Sounds like stcheckout has been deprecated in ant. We do have a plugin for Jenkins, or you can use stcmd/stcmdex to do the same as stcheckout

  • Thank you Danielle, will try to use stcmd and update if any issues.