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 #551553] Sat, 07 August 2010 00:44 Go to next message
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
Re: help needed - running wikitext ant build from within eclipse [message #552022 is a reply to message #551553] Tue, 10 August 2010 14:33 Go to previous message
David Green is currently offline David GreenFriend
Messages: 136
Registered: July 2009
Senior Member
Henrik,

Comments below:

On 8/6/2010 5:44 PM, Henrik Lindberg wrote:
> 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).

Actually it should be run in a separate VM. Comment 58 could have been
a little more clear:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=273325#c58

Your problem should go away if you select *Separate JRE* on the *JRE*
tab of the Ant launch configuration. Please let me know if that works
for you.

David

> 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
Re: help needed - running wikitext ant build from within eclipse [message #601827 is a reply to message #551553] Tue, 10 August 2010 14:33 Go to previous message
David Green is currently offline David GreenFriend
Messages: 136
Registered: July 2009
Senior Member
Henrik,

Comments below:

On 8/6/2010 5:44 PM, Henrik Lindberg wrote:
> 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).

Actually it should be run in a separate VM. Comment 58 could have been
a little more clear:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=273325#c58

Your problem should go away if you select *Separate JRE* on the *JRE*
tab of the Ant launch configuration. Please let me know if that works
for you.

David

> 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: Fri Apr 26 06:23:20 GMT 2024

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

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

Back to the top