Need help for Build
I did the build example (with Hello.java, HelloTest.java and build.xml script) shipped with Team Concert but I don't see Compilation tab. I can see these tabs: Summary, JUnit, Downloads, Logs and Properties.
Can someone tell me how to do to see Compilation tab ? Thanks |
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 |
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 |
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 |
Make sure you set your compiler property
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter" /> Then in the <javac> you want to make sure you have <compilerarg line="-log ${file.compile.log}" /> |
Everything is therer in the build.xml script. The file compile.xml is generated after builds. But I don't see Compilation tab.
I created a Work Item with the attachments for reference: https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=42148 |
Possibly a messed up client plugin, or a bad install
Try to start teamconcert with -clean so it will rescan your plugins. Also, try from another install of team concert. |
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.