Community
Participate
Working Groups
We are using the mediawiki-to-eclipse-help ant task. When we launch ant in Eclipse as an external tool, with "Run in the same JRE as the workspace" set to true, we get the following error: taskdef A class needed by class org.eclipse.mylyn.internal.wikitext.mediawiki.core.tasks.WikiToDocTask cannot be found: org/apache/tools/ant/BuildException If on the other hand we set "Run in the same JRE as the workspace" to false, there is no such error. But we need to use the mediawiki-to-eclipse-help task from Buckminster, to which we cannot tell to start ant in a different JVM.
Created attachment 177857 [details] project to reproduce the error Here is a minimal project with which I can reproduce the error.
Created attachment 177858 [details] stacktrace
This is a shortcoming of Eclipse's Ant support, which doesn't set up classloaders correctly (that is, correctly for Ant). In the past this has manifested itself as bug 290993, probably related to bug 278246. A workaround is to run Buckminster _without_ WikiText plug-ins installed, and have the Ant task define a classpath with WikiText in the standalone configuration. See the WikiText help, "Markup Conversion":http://help.eclipse.org/helios/topic/org.eclipse.mylyn.wikitext.help.ui/help/Markup-Conversion.html#ConversionusingAntbuildscripts for an example Ant script that sets up the classpath correctly. The WikiText standalone package can be downloaded from http://www.eclipse.org/mylyn/downloads/ If the workaround works for you please let me know.
It works! Thank you for your help and quick answer.
(In reply to comment #4) > It works! Thank you for your help and quick answer. Great to hear. Have fun with Buckminster!