Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » help needed - running wikitext ant build from within eclipse
help needed - running wikitext ant build from within eclipse [message #601808] Sat, 07 August 2010 00:44
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Hi,
I am trying to generate eclipse-help from *.mediawiki files (local to my
project). I manged to convert the files I have with the UI menu action,
but have failed to make this work with an ant build file.

I have the following specification:
<target name="generate-help" description="Generate Eclipse help from
MediaWiki source">
<wikitext-to-eclipse-help markupLanguage="MediaWiki"
multipleOutputFiles="true"
navigationImages="false"
helpPrefix="help">
<fileset dir="${basedir}"
includes="help/*.mediawiki"
/>
</wikitext-to-eclipse-help>

Following the advice in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=273325 I managed to make
this run by using "Run as ANT..." and specifying that it should run in
the same JRE as Eclipse (to find the registered ant task).

It fails however with a NPE with the following root cause:
Caused by: java.lang.NullPointerException
at
org.apache.tools.ant.types.AbstractFileSet.setupDirectorySca nner(AbstractFileSet.java:477)
at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScann er(AbstractFileSet.java:442)
at
org.eclipse.mylyn.wikitext.core.util.anttask.MarkupToHtmlTas k.execute(MarkupToHtmlTask.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch Utils.java:106)

So, I wonder if I should be doing something differently. Is this
supposed to work?

Regards
- henrik
Previous Topic:OTRS Template in Web Template outdated
Next Topic:keep getting md5 not as expected
Goto Forum:
  


Current Time: Thu Sep 26 12:35:12 GMT 2024

Powered by FUDForum. Page generated in 0.03634 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top