Need help for Build
6 answers
It could be there was a problem invoking the compiler. In the build result
Logs tab, is there a log? If so, can you include its contents here?
Be sure you downloaded the ecj.jar from eclipse as in step 2 of the
instructions in
/jazz/buildsystem/buildtoolkit/examples/compile-ant-test/build.xml
---
Ryan Manwiller
Jazz Team Build component
Logs tab, is there a log? If so, can you include its contents here?
Be sure you downloaded the ecj.jar from eclipse as in step 2 of the
instructions in
/jazz/buildsystem/buildtoolkit/examples/compile-ant-test/build.xml
---
Ryan Manwiller
Jazz Team Build component
Yes, I followed all the instructions in build.xml. I downloaded ecj.jar and I specified it in the Ant Arguments field ("-lib D:\jazz_test\ecj.jar").
Here is the result in a file of Logs tab:
Invoking pre-build participant "com.ibm.team.build.jazzscm"
Accepting changes into workspace "Hello_World_Project_Area Team Stream Workspace2" ...
Fetching files to fetch destination "D:\jazz_test_team_concert_beta2a\jazz\buildsystem\buildengine\eclipse\fectch" ...
Invoking build participant "com.ibm.team.build.ant"
Buildfile: D:\jazz_test_workspace_admin_no_migration\Hello_World\build.xml
checkEnv:
Using repositoryAddress = http://localhost:9080/jazz/
Using userId = ADMIN
Using buildDefinitionId = Hello_World_Project_Area Team build
Using junitJar = D:\jazz_test_team_concert_beta2\jazz\client\eclipse\plugins\org.junit_3.8.2.v200706111738\junit.jar
compile:
Deleting directory D:\jazz_test_workspace_admin_no_migration\Hello_World\bin
Created dir: D:\jazz_test_workspace_admin_no_migration\Hello_World\bin
Compiling 2 source files to D:\jazz_test_workspace_admin_no_migration\Hello_World\bin
Building jar: D:\jazz_test_workspace_admin_no_migration\Hello_World\hello.jar
test:
runBuild:
Build Hello_World_Project_Area Team build completed.
all:
BUILD SUCCESSFUL
Total time: 5 seconds
Here is the result in a file of Logs tab:
Invoking pre-build participant "com.ibm.team.build.jazzscm"
Accepting changes into workspace "Hello_World_Project_Area Team Stream Workspace2" ...
Fetching files to fetch destination "D:\jazz_test_team_concert_beta2a\jazz\buildsystem\buildengine\eclipse\fectch" ...
Invoking build participant "com.ibm.team.build.ant"
Buildfile: D:\jazz_test_workspace_admin_no_migration\Hello_World\build.xml
checkEnv:
Using repositoryAddress = http://localhost:9080/jazz/
Using userId = ADMIN
Using buildDefinitionId = Hello_World_Project_Area Team build
Using junitJar = D:\jazz_test_team_concert_beta2\jazz\client\eclipse\plugins\org.junit_3.8.2.v200706111738\junit.jar
compile:
Deleting directory D:\jazz_test_workspace_admin_no_migration\Hello_World\bin
Created dir: D:\jazz_test_workspace_admin_no_migration\Hello_World\bin
Compiling 2 source files to D:\jazz_test_workspace_admin_no_migration\Hello_World\bin
Building jar: D:\jazz_test_workspace_admin_no_migration\Hello_World\hello.jar
test:
runBuild:
Build Hello_World_Project_Area Team build completed.
all:
BUILD SUCCESSFUL
Total time: 5 seconds
The log looks good. Can you confirm your build.xml contains this:
<!-- Publish the compile log to Jazz. -->
<jdtCompileLogPublisher buildResultUUID="${buildResultUUID}"
repositoryAddress="${repositoryAddress}"
userId="${userId}"
password="${password}"
filePath="${compileLog}" />
After running the build, does the compile-and-test directory contain a
compile.xml file? This is the file that the jdtCompileLogPublisher is trying
to publish.
Also, check the Error Log view in eclipse. Is there an error logged when
opening the build result? Also, try refreshing the build result.
Finally, as a way to debug it and verify the jdtCompileLogPublisher is being
run, in the build xml change the filePath="${compileLog}" to
filePath="missing" and just confirm you get an error in the log.
---
Ryan Manwiller
Jazz Team Build
<!-- Publish the compile log to Jazz. -->
<jdtCompileLogPublisher buildResultUUID="${buildResultUUID}"
repositoryAddress="${repositoryAddress}"
userId="${userId}"
password="${password}"
filePath="${compileLog}" />
After running the build, does the compile-and-test directory contain a
compile.xml file? This is the file that the jdtCompileLogPublisher is trying
to publish.
Also, check the Error Log view in eclipse. Is there an error logged when
opening the build result? Also, try refreshing the build result.
Finally, as a way to debug it and verify the jdtCompileLogPublisher is being
run, in the build xml change the filePath="${compileLog}" to
filePath="missing" and just confirm you get an error in the log.
---
Ryan Manwiller
Jazz Team Build