Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330450 - mediawiki-to-eclipse-help task is not found
Summary: mediawiki-to-eclipse-help task is not found
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: David Green CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-17 08:26 EST by Yves Savourel CLA
Modified: 2011-01-06 10:01 EST (History)
0 users

See Also:


Attachments
ant script (1.51 KB, application/xml)
2010-11-23 23:20 EST, Yves Savourel CLA
no flags Details
mylyn/context/zip (10.60 KB, application/octet-stream)
2010-11-25 15:12 EST, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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