help needed - running wikitext ant build from within eclipse [message #601808] |
Sat, 07 August 2010 00:44 |
Henrik Lindberg 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
|
|
|
Powered by
FUDForum. Page generated in 0.03634 seconds