PDE build/test problems after migrating to 3.4 [message #331438] |
Sat, 06 September 2008 04:11 |
Eclipse User |
|
|
|
Hi,
We just migrated from eclipse 3.3 to eclipse 3.4 and the PDE-Junit tests
have been causing issues since then.
The build fails with the error:
[2008-09-06T9-27-50] Status ERROR: org.eclipse.mylyn.tasks.ui code=0
Could not load repository template extension repository null,
Exception in thread "WorkbenchTestable" org.eclipse.swt.SWTException:
Failed to execute runnable (java.lang.NoClassDefFoundError:
junit/framework/TestListener)
!ENTRY org.eclipse.ui 4 0 2008-09-06 09:27:51.304
at org.eclipse.swt.SWT.error(SWT.java:3777)!MESSAGE
Unhandled event loop exception at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:194)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:3947)
at
org.eclipse.ui.internal.testing.WorkbenchTestable.runTest(Wo rkbenchTestable.java:109)
at org.eclipse.test.UITestApplication.runTests(UITestApplicatio n.java:192)
at
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:68)
at java.lang.Thread.run(Thread.java:613)
The issue that I've noticed is in the library.xml packaged as part of
pdebuild. The formatter that is passed in via the command line is
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultF ormatter
which extends from junit.framework.TestListener, however junit does not
seem to be on the classpath. I've however got both org.junit and
org.junit4 plugins in the eclipse installation.
Here's what my command line looks like, and deleting the formatter line
solves the issue, however this in not quite what I'd want since the XML
reports are consumed by cruise control to flag the build as passed/failed.
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/H ome/bin/java
-Xms128M -Xmx512M -XX:MaxPermSize=256M -XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Xdock:icon=../Resources/Eclipse.icns
-DPLUGIN_PATH=/Volumes/data/workspaces/twist/build/test-sand box/test-eclipse/eclipse/plugins/com.thoughtworks.tide.eclip se.core.tests_1.0.0.2934-shiva
-classpath
/Volumes/data/workspaces/twist/build/test-sandbox/test-eclip se/eclipse/plugins/org.eclipse.equinox.launcher_1.0.100.v200 80509-1800.jar
org.eclipse.core.launcher.Main
-application org.eclipse.test.uitestapplication
-data
/Volumes/data/workspaces/twist/build/test-sandbox/test-eclip se/eclipse/tide_eclipse_folder
-testPluginName com.thoughtworks.tide.eclipse.core.tests
-className com.thoughtworks.tide.eclipse.core.EclipseTideCoreTestSuite
-os macosx -ws carbon -arch x86 -consolelog
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJU nitResultFormatter,/Volumes/data/workspaces/twist/build/test -sandbox/test-eclipse/eclipse/com.thoughtworks.tide.eclipse. core.EclipseTideCoreTestSuite.xml
-- Ketan
|
|
|
Powered by
FUDForum. Page generated in 0.03122 seconds