Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

trying to use ant and RTC

I have a sample ant script to extract code from RTC

I am trying to run it from command line.

I am getting the following error.

C:\build.xml:160: taskdef A class needed by class com.ibm.team.build.ant.task.St
artBuildTask cannot be found: com/ibm/team/repository/common/TeamRepositoryExcep
tion

Earlier i got the error:

taskdef class com.ibm.team.build.ant.task.StartBuildTask cannot be found

Then i added

C:\Program Files\IBM\TeamConcertBuild\buildsystem\buildtoolkit\com.ibm.team.build.client_0.6.1.I200810082303.jar;C:\Program Files\IBM\TeamConcertBuild\buildsystem\bu
ildtoolkit\com.ibm.team.build.common_0.6.1.I200810082303.jar;C:\Program Files\IBM\TeamConcertBuild\buildsystem\buildtoolkit\com.ibm.team.build.toolkit_0.6.1.I200810082303.jar;

to get the more recent error.

I am not sure what other jars i need to get a command line Ant to work.

Any help would be greatly appreciated. Thanks.

0 votes



One answer

Permanent link
I have a sample ant script to extract code from RTC

I am trying to run it from command line.

I am getting the following error.

C:\build.xml:160: taskdef A class needed by class com.ibm.team.build.ant.task.St
artBuildTask cannot be found: com/ibm/team/repository/common/TeamRepositoryExcep
tion

Earlier i got the error:

taskdef class com.ibm.team.build.ant.task.StartBuildTask cannot be found

Then i added

C:\Program Files\IBM\TeamConcertBuild\buildsystem\buildtoolkit\com.ibm.team.build.client_0.6.1.I200810082303.jar;C:\Program Files\IBM\TeamConcertBuild\buildsystem\bu
ildtoolkit\com.ibm.team.build.common_0.6.1.I200810082303.jar;C:\Program Files\IBM\TeamConcertBuild\buildsystem\buildtoolkit\com.ibm.team.build.toolkit_0.6.1.I200810082303.jar;

to get the more recent error.

I am not sure what other jars i need to get a command line Ant to work.

Any help would be greatly appreciated. Thanks.


Hi,

You may need to add the location of the buildtoolkit directory to the Ant library path when invoking Ant. Typically, you perform this task by using the -lib argument to Ant.

An example Ant invocation would like the line below.

ant -f build.xml -lib installdir/buildsystem/buildtoolkit

Brent Ulbricht
Developer/Lead - RTC Build

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 22 '11, 10:44 a.m.

Question was seen: 6,859 times

Last updated: Feb 22 '11, 10:44 a.m.

Confirmation Cancel Confirm