Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311132 - [WikiText] Errors with mediawiki-to-eclipse-help
Summary: [WikiText] Errors with mediawiki-to-eclipse-help
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 1.2   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 1.3.0   Edit
Assignee: David Green CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-30 03:02 EDT by Nicolas Guyomar CLA
Modified: 2011-01-05 11:24 EST (History)
0 users

See Also:


Attachments
Ant build script for MoDisco Help Content Generation (2.45 KB, text/xml)
2010-04-30 03:02 EDT, Nicolas Guyomar CLA
no flags Details
mylyn/context/zip (22.34 KB, application/octet-stream)
2010-04-30 10:33 EDT, David Green CLA
no flags Details
output from latest build (9.17 KB, text/plain)
2010-05-10 10:36 EDT, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Guyomar CLA 2010-04-30 03:02:07 EDT
Created attachment 166593 [details]
Ant build script for MoDisco Help Content Generation

This bug follows this topic : 
http://www.eclipse.org/forums/index.php?t=msg&th=167198&start=0&

As agreed, please find attached my Ant build script

Regars

Nicolas
Comment 1 David Green CLA 2010-04-30 10:33:30 EDT
Thanks for the bug.  The templateExcludes weren't being propagated when processing the table of contents.

Fixed in CVS, will be available with the next weekly build.
Comment 2 David Green CLA 2010-04-30 10:33:33 EDT
Created attachment 166618 [details]
mylyn/context/zip
Comment 3 Nicolas Guyomar CLA 2010-05-10 08:57:51 EDT
(In reply to comment #2)

Hi David,
I updated to Mylyn 1.3.0.I20100506 but I can't get rid of the errors

It seems the templateExclude mechanism does not work for me, I'm still getting the same exception stack : 

[mediawiki-to-eclipse-help] 10 mai 2010 14:52:18 org.eclipse.mylyn.internal.wikitext.mediawiki.core.WikiTemplateResolver resolveTemplate
[mediawiki-to-eclipse-help] ATTENTION: Cannot read from http://wiki.eclipse.org/index.php?title=Template%3Amodiscojavatabs&action=raw: http://wiki.eclipse.org/index.php?title=Template%3Amodiscojavatabs&action=raw
[mediawiki-to-eclipse-help] java.io.FileNotFoundException: http://wiki.eclipse.org/index.php?title=Template%3Amodiscojavatabs&action=raw
[mediawiki-to-eclipse-help] 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
[mediawiki-to-eclipse-help] 	at java.net.URL.openStream(Unknown Source)

I tried with 
templateExcludes = "*modiscojavatabs*"
templateExcludes = "modiscojavatabs*"
templateExcludes = "*modiscojavatabs"

If you manage to fix those errors, will the patch be included in Helios ?

Regards,
Nicolas
Comment 4 David Green CLA 2010-05-10 10:36:31 EDT
Created attachment 167717 [details]
output from latest build

I've just downloaded the standalone package and run your attached build script, and it looks fine to me.

The problem that you're experiencing is likely due to the fact that you're pointing the wikitext classpath at your eclipse plugins folder.  That folder contains both the old version and the new version of WikiText.  Instead of doing that, I recommend downloading the standalone package.  That way you're sure to be picking up jar files from just one version of WikiText.
Comment 5 David Green CLA 2010-05-10 10:36:58 EDT
See comment #10 above.
Comment 6 Nicolas Guyomar CLA 2010-05-10 11:53:13 EDT
My mistake David, it actually works fine, thank you a lot.

What I was asking for Helios is :  when will you update the staging repository ? 
For now I can get from there Mylyn WikiText 1.3.0.I20100430-1600-e3x for our releng process 

Regards

Nicolas

(In reply to comment #5)
Comment 7 David Green CLA 2010-05-26 12:28:59 EDT
(In reply to comment #6)
> What I was asking for Helios is :  when will you update the staging repository ?
> For now I can get from there Mylyn WikiText 1.3.0.I20100430-1600-e3x for our
> releng process

Sorry for the late response.  Mylyn WikiText standalone is currently at version 1.3.0I20100526-0500 (from http://www.eclipse.org/mylyn/downloads click on the Standalone link)

Note that I'm trying to get a new build out today for bug 308207