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

Error with automated builds using Visual Studio

Hello,
I installed the Team Concert's Build System Toolkit and configured a build on Team Concert Client.
Unfortunately an error occurs accusing not find the file "tools.jar".
Looking for a solution I found on the possibility of paths with spaces cause this problem, so I changed the paths to remove spaces, but not solved.
Hope you can help me.
Thanks.

Log:

2014-01-30 08:40:35 [Mecanismo de compilação do Jazz]


2014-01-30 08:40:35 [Mecanismo de compilação do Jazz] Substituídas as seguintes variáveis da propriedade do elemento de configuração:

2014-01-30 08:40:35 [Mecanismo de compilação do Jazz]     com.ibm.team.build.msbuild : com.ibm.team.build.msbuild.buildItem = ExemploAula\ExemploAula.sln-E_o_T-Build-E_o_T-Build-E_o_T-/property:fetchDestination=${team.scm.fetchDestination}-E_o_T-LogExemploAulaBuild-E_o_T-${team.scm.fetchDestination}-E_o_B_i-   -->   com.ibm.team.build.msbuild.buildItem = ExemploAula\ExemploAula.sln-E_o_T-Build-E_o_T-Build-E_o_T-/property:fetchDestination=C:\Builds\Lab-E_o_T-LogExemploAulaBuild-E_o_T-C:\Builds\Lab-E_o_B_i-
2014-01-30 08:40:35 [Mecanismo de compilação do Jazz]     com.ibm.team.build.mstest.config : com.ibm.team.build.mstest.workingDir = ${team.scm.fetchDestination}\ExemploAula   -->   com.ibm.team.build.mstest.workingDir = C:\Builds\Lab\ExemploAula
2014-01-30 08:40:35 [Mecanismo de compilação do Jazz]
2014-01-30 08:40:35 [Mecanismo de compilação do Jazz] em execução no host: SGN-DB2
2014-01-30 08:40:35 [Mecanismo de compilação do Jazz] A compilação deve ocorrer?
2014-01-30 08:40:35 [Mecanismo de compilação do Jazz] Sim: Sempre compilar uma solicitação iniciada pelo usuário.
2014-01-30 08:40:35 [Mecanismo de compilação do Jazz] Chamando participante pré-compilação "com.ibm.team.build.jazzscm"
2014-01-30 08:40:36 [Mecanismo de compilação do Jazz] Aceitando mudanças no espaço de trabalho "Stream-LabSGN - BuildServer" ...
2014-01-30 08:40:40 [Mecanismo de compilação do Jazz] Excluindo destino de busca "C:\Builds\Lab" antes de buscar ...
2014-01-30 08:40:40 [Mecanismo de compilação do Jazz] Buscando arquivos para destino de busca "C:\Builds\Lab" ...
2014-01-30 08:40:43 [Mecanismo de compilação do Jazz] Chamando participante da compilação "com.ibm.team.build.msbuild"
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.1]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 30/01/2014 08:40:43.
Project "C:\Builds\Lab\ExemploAula\ExemploAula.sln" on node 1 (Build target(s)).
ValidateSolutionConfiguration:
  Building solution configuration "Build|Any CPU".
ValidateProjects:
  The project "ExemploAula" is not selected for building in solution configuration "Build|Any CPU".
Project "C:\Builds\Lab\ExemploAula\ExemploAula.sln" (1) is building "C:\Builds\Lab\ExemploAula\ExemploAulaTeste\ExemploAulaTeste.csproj" (2) on node 1 (default targets).
BeforeBuild:
  "C:\BuildToolkit\TeamConcertBuild\jre\bin\java.exe" -cp "C:\BuildToolkit\TeamConcertBuild\buildsystem\buildengine\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-launcher.jar" org.apache.tools.ant.launch.Launcher -cp "C:\BuildToolkit\TeamConcertBuild\jre\lib" -lib "C:\BuildToolkit\TeamConcertBuild\buildsystem\buildtoolkit"-DactivityLabel=startActivity -propertyfile C:\BuildToolkit\TeamConcertBuild\buildsystem\buildengine\eclipse\mybuild.properties -f C:\Builds\Lab\ExemploAula\jazzbuild.xml startActivity
  Unable to locate tools.jar. Expected to find it in C:\BuildToolkit\TeamConcertBuild\lib\tools.jar
  Buildfile: C:\Builds\Lab\ExemploAula\jazzbuild.xml
 
  BUILD FAILED
  C:\Builds\Lab\ExemploAula\jazzbuild.xml:5: The following error occurred while executing this line:
  C:\BuildToolkit\TeamConcertBuild\buildsystem\buildtoolkit\BuildToolkitTaskDefs.xml:24: taskdef class com.ibm.team.build.ant.task.ArtifactFilePublisherTask cannot be found
 
  Total time: 0 seconds
C:\Builds\Lab\ExemploAula\ExemploAulaTeste\ExemploAulaTeste.csproj(68,5): error MSB3073: The command ""C:\BuildToolkit\TeamConcertBuild\jre\bin\java.exe" -cp "C:\BuildToolkit\TeamConcertBuild\buildsystem\buildengine\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-launcher.jar" org.apache.tools.ant.launch.Launcher -cp "C:\BuildToolkit\TeamConcertBuild\jre\lib" -lib "C:\BuildToolkit\TeamConcertBuild\buildsystem\buildtoolkit"-DactivityLabel=startActivity -propertyfile C:\BuildToolkit\TeamConcertBuild\buildsystem\buildengine\eclipse\mybuild.properties -f C:\Builds\Lab\ExemploAula\jazzbuild.xml startActivity" exited with code 1.
Done Building Project "C:\Builds\Lab\ExemploAula\ExemploAulaTeste\ExemploAulaTeste.csproj" (default targets) -- FAILED.
Done Building Project "C:\Builds\Lab\ExemploAula\ExemploAula.sln" (Build target(s)) -- FAILED.

Build FAILED.

"C:\Builds\Lab\ExemploAula\ExemploAula.sln" (Build target) (1) ->
"C:\Builds\Lab\ExemploAula\ExemploAulaTeste\ExemploAulaTeste.csproj" (default target) (2) ->
(BeforeBuild target) ->
  C:\Builds\Lab\ExemploAula\ExemploAulaTeste\ExemploAulaTeste.csproj(68,5): error MSB3073: The command ""C:\BuildToolkit\TeamConcertBuild\jre\bin\java.exe" -cp "C:\BuildToolkit\TeamConcertBuild\buildsystem\buildengine\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-launcher.jar" org.apache.tools.ant.launch.Launcher -cp "C:\BuildToolkit\TeamConcertBuild\jre\lib" -lib "C:\BuildToolkit\TeamConcertBuild\buildsystem\buildtoolkit"-DactivityLabel=startActivity -propertyfile C:\BuildToolkit\TeamConcertBuild\buildsystem\buildengine\eclipse\mybuild.properties -f C:\Builds\Lab\ExemploAula\jazzbuild.xml startActivity" exited with code 1.

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.55
Compilação com falha para - "ExemploAula\ExemploAula.sln", a compilação saiu com valor "1".
Contribuição(ões) de compilação 1 publicada(s) a partir do log de compilação MSBuild.
2014-01-30 08:40:44 [Mecanismo de compilação do Jazz] Chamando participante pós-compilação "com.ibm.team.build.mstest.config"
Microsoft (R) Test Execution Command Line Tool Version 10.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
   
Loading ExemploAula.vsmdi...
Starting execution...
No tests to execute.
"MSTest" concluído com êxito.

0 votes



One answer

Permanent link
Hi,

you seem to be missing a space in your build command, right between the parameter for -lib and the -DActivityLabel. So instead of
[...]  -lib "C:\BuildToolkit\TeamConcertBuild\buildsystem\buildtoolkit"-DactivityLabel=startActivity
it probably should be:
[...] -lib "C:\BuildToolkit\TeamConcertBuild\buildsystem\buildtoolkit" -DactivityLabel=startActivity

Does this resolve your build path issue? Then please mark the answer as accepted.
Thanks,
Arne

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
× 6,121
× 562

Question asked: Jan 30 '14, 7:33 a.m.

Question was seen: 5,642 times

Last updated: Feb 02 '14, 7:09 p.m.

Confirmation Cancel Confirm