Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330450

Summary: mediawiki-to-eclipse-help task is not found
Product: z_Archived Reporter: Yves Savourel <yves>
Component: MylynAssignee: David Green <greensopinion>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
ant script
none
mylyn/context/zip none

Description Yves Savourel CLA 2010-11-17 08:26:54 EST
Build Identifier: wikitext-standalone (org.eclipse.mylyn.wikitext.core_1.4.0.I20101110-1300-e3x.jar)

when trying to run a mediawiki-to-eclipse-help task according the example in the documentation. Ant cannot find any adapter for that task.
The tasks.properties list only tasks for wikitext-to-etc.


Reproducible: Always

Steps to Reproduce:
1. create an ant task with 
<mediawiki-to-eclipse-help
 wikiBaseUrl="http://wiki.eclipse.org"
 validate="true" ... etc.

2. run it.

The taskdef seems to be defined ok (it find <wikitext-to-eclipse-help> task for example.


2.
3.
Comment 1 David Green CLA 2010-11-22 12:01:24 EST
Thanks for the bug.  Can you please attach your Ant build script?  Also note that you'll need to have the org.eclipse.mylyn.wikitext.mediawiki*.jar in the classpath of your taskdef.
Comment 2 Yves Savourel CLA 2010-11-23 23:20:28 EST
Created attachment 183723 [details]
ant script

Hi David,
Here is the script.

The error is:
failed to create task or type mediawiki-to-eclipse-help
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

org.eclipse.mylyn.wikitext.mediawiki.core_1.4.0.I20101110-1300-e3x.jar is in the classpath

But looking inside the jar I see only definition for the following tasks:

wikitext-to-eclipse-help=org.eclipse.mylyn.wikitext.core.util.anttask.MarkupToEclipseHelpTask
wikitext-to-html=org.eclipse.mylyn.wikitext.core.util.anttask.MarkupToHtmlTask
wikitext-to-docbook=org.eclipse.mylyn.wikitext.core.util.anttask.MarkupToDocbookTask
wikitext-to-dita=org.eclipse.mylyn.wikitext.core.util.anttask.MarkupToDitaTask
wikitext-to-xslfo=org.eclipse.mylyn.wikitext.core.util.anttask.MarkupToXslfoTask

-ys
Comment 3 David Green CLA 2010-11-25 15:12:45 EST
You'll need to add the following @<taskdef>@ to your Ant build script:

bc. 
	<taskdef classpathref="wikitext.tasks.classpath" 
		resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties"/>

I've updated the documentation to include this information.  Also you might be interested in this article: "DocumentationGuidelines/CrowdSourcingExample":http://wiki.eclipse.org/DocumentationGuidelines/CrowdSourcingExample (eclipse.org)
Comment 4 David Green CLA 2010-11-25 15:12:48 EST
Created attachment 183883 [details]
mylyn/context/zip