You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Lee, Sarek" <Sa...@Staples.com> on 2014/07/02 00:04:42 UTC

StarTeam Label Trouble with Ant

Hello,
     I'm new to Ant and am working on it for StarTeam build automation. I've scoured the internet for a similar problem but I was unable to find any, and everyone at my work believe it should run fine.

My goal is to apply a build label (named "buildLabelPIPAppCVS") to a  directory ("AdvancedAttr")  and all its subfolders/files on our StarTeam server. This is executed as one of the steps in the build, and needs to draw information from variables defined earlier in the build (like "buildLabelPIPAppCVS").


Below is the code snippet  I am running:

                ...

                <echo message=""/>
                                <echo message="2S. Apply Build Label in StarTeam"/>
                                <tstamp>
                                                <format property="nowstamp" pattern="yyyyMMddHHmmss" locale="en"/>
                                </tstamp>
                                <stlabel URL="starteamapp.staples.com:49201/MMS_VendorItemPortal/AdvancedAttr"
           username="thisismyuser"
           password="thisismypassword"
           label= "${buildLabelPIPAppCVS}"
           lastbuild="${nowstamp}"
           description="-This description is currently unavailable.-"
                                />

                ...

However,  when I run the above snippet, the build fails and I receive the error message shown below:

BUILD FAILED
C:\StarTeamWorkingFolders\MMS_VendorItemPortal\Mainline\MMS_VendorItemPortal\5_D
eploy\antBuildScripts\05_executePIPBuild.xml:104: The following error occurred w
hile executing this line:
C:\StarTeamWorkingFolders\MMS_VendorItemPortal\Mainline\MMS_VendorItemPortal\5_D
eploy\antBuildScripts\10_packageBuild.xml:79: Problem: failed to create task or
type stlabel
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.

Software Versions:

-          Ant 1.9.4

-          JDK 1.6.0u21

-          Windows XP Prof. SP3



My question then is:

                What could be causing the "Failed to create task or type stlabel" in my code, and what can I do to fix this problem?


Thanks,

Sarek Lee
IT Intern

AW: StarTeam Label Trouble with Ant

Posted by "Jan Matèrne (jhm)" <ap...@materne.de>.
There is no star team support built in in Ant.
So you have to install it for yourself via taskdef [1] or antlib [2].

StarTeam tasks are available in the Ant sandbox [3] (you have to build that
from source) from
sourceforge [4] and maybe from the manufacturer of star team.

Searching for "starteam stlabel" it seems, that the antlib could be the
right place for you to start,
as this is the code which was former in the Ant core codebase.


Jan


[1] http://ant.apache.org/manual/Tasks/taskdef.html
[2] http://ant.apache.org/manual/Types/antlib.html
[3] http://ant.apache.org/antlibs/sandbox.html
[4]
http://antinstaller.sourceforge.net/manual/manual/OptionalTasks/starteam.htm
l





> -----Ursprüngliche Nachricht-----
> Von: Lee, Sarek [mailto:Sarek.Lee@Staples.com]
> Gesendet: Mittwoch, 2. Juli 2014 00:05
> An: user@ant.apache.org
> Betreff: StarTeam Label Trouble with Ant
> 
> 
> Hello,
>      I'm new to Ant and am working on it for StarTeam build automation.
> I've scoured the internet for a similar problem but I was unable to
> find any, and everyone at my work believe it should run fine.
> 
> My goal is to apply a build label (named "buildLabelPIPAppCVS") to a
> directory ("AdvancedAttr")  and all its subfolders/files on our
> StarTeam server. This is executed as one of the steps in the build, and
> needs to draw information from variables defined earlier in the build
> (like "buildLabelPIPAppCVS").
> 
> 
> Below is the code snippet  I am running:
> 
>                 ...
> 
>                 <echo message=""/>
>                                 <echo message="2S. Apply Build Label in
> StarTeam"/>
>                                 <tstamp>
>                                                 <format
> property="nowstamp" pattern="yyyyMMddHHmmss" locale="en"/>
>                                 </tstamp>
>                                 <stlabel
> URL="starteamapp.staples.com:49201/MMS_VendorItemPortal/AdvancedAttr"
>            username="thisismyuser"
>            password="thisismypassword"
>            label= "${buildLabelPIPAppCVS}"
>            lastbuild="${nowstamp}"
>            description="-This description is currently unavailable.-"
>                                 />
> 
>                 ...
> 
> However,  when I run the above snippet, the build fails and I receive
> the error message shown below:
> 
> BUILD FAILED
> C:\StarTeamWorkingFolders\MMS_VendorItemPortal\Mainline\MMS_VendorItemP
> ortal\5_D
> eploy\antBuildScripts\05_executePIPBuild.xml:104: The following error
> occurred w hile executing this line:
> C:\StarTeamWorkingFolders\MMS_VendorItemPortal\Mainline\MMS_VendorItemP
> ortal\5_D
> eploy\antBuildScripts\10_packageBuild.xml:79: Problem: failed to create
> task or type stlabel
> 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.
> 
> Software Versions:
> 
> -          Ant 1.9.4
> 
> -          JDK 1.6.0u21
> 
> -          Windows XP Prof. SP3
> 
> 
> 
> My question then is:
> 
>                 What could be causing the "Failed to create task or
> type stlabel" in my code, and what can I do to fix this problem?
> 
> 
> Thanks,
> 
> Sarek Lee
> IT Intern


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org