Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Re: Howto pre-index help plugin outside eclipse
Re: Howto pre-index help plugin outside eclipse [message #617653] Tue, 24 June 2008 21:40
Eclipse User
Originally posted by: nospam_kowalskilee.gmail.com

Daffe wrote:
> Hi,
>
> I'm trying to pre-index my help plugin for my standalone infocenter, but
> I can not get it to work. I manage to get the index built in the product
> way by running the command mentioned in the help as shown below:
>
> eclipse -nosplash -application org.eclipse.help.base.indexTool -vmargs
> -DindexOutput=outputDirectory -DindexLocale=locale
>
> This worked fine but then I got index contributions from all other
> eclipse plugins within that eclipse installation. And I only what
> contributions from my plugin.
>
> What I want is some way of to automate the indexing from ant for my help
> plugin without using a complete eclipse installation or an eclipse
> project. I tried to copy the required jar files and create an ant build
> file in the following way:
>
> <project name="DocIndexTest" default="build.index" basedir=".">
>
> <taskdef name="help.buildHelpIndex"
> classname="org.eclipse.help.internal.base.ant.BuildHelpIndex "
> classpath=" lib/helpbase-ant.jar:lib/org.eclipse.equinox.common_3.2.0.v2 0060603.jar:lib/org.eclipse.help.base_3.2.0.v20060601.jar:li b/org.eclipse.osgi_3.2.0.v20060601.jar:lib/org.eclipse.core. runtime_3.2.0.v20060603.jar:lib/lucene-1.4.3.jar "/>
>
>
> <target name="build.index">
> <help.buildHelpIndex manifest="${basedir}/plugin.xml"
> destination="${basedir}"/> </target>
>
> </project>
>
> But when run this gives me the following NullPointerException.
>
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.core.internal.runtime.InternalPlatform.getNL(Int ernalPlatform.java:500)
>
> at org.eclipse.core.runtime.Platform.getNL(Platform.java:1115)
> at
> org.eclipse.help.search.HelpIndexBuilder.processLocaleDir(He lpIndexBuilder.java:481)
>
> at
> org.eclipse.help.search.HelpIndexBuilder.execute(HelpIndexBu ilder.java:312)
> at
> org.eclipse.help.internal.base.ant.BuildHelpIndex.execute(Bu ildHelpIndex.java:66)
>
> at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> ... 10 more
>
> Perhaps the locale needs to be set in some way?
>
> I also tried the idea of running java from ant by calling this command,
> even if I do not want contributions from other plugins:
>
> java -jar plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
> -nosplash -application org.eclipse.help.base.indexTool -vmargs
> -DindexOutput=indexed -DindexLocale=en
>
> but this gave me this exception even if the indexOutput is sent along as
> a vm parameter:
>
> java.lang.Exception: indexOutput property is not set.
> at
> org.eclipse.help.internal.base.IndexToolApplication.start(In dexToolAp
> plication.java:38)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandl
> e.java:169)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runAppli
> cation(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(Ec
> lipseAppLauncher.java:76)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
> va:363)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
> va:176)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
> Is there a way to pre-build this index in an automated way?
>
>
Previous Topic:"Suppress infopop when only one target" (bug 88822) update
Next Topic:Re: Howto pre-index help plugin outside eclipse
Goto Forum:
  


Current Time: Tue Jul 22 07:30:55 EDT 2014

Powered by FUDForum. Page generated in 0.13209 seconds