FS#24148 - [javahelp2] shell scripts

Attached to Project: Community Packages
Opened by Craig Cavanaugh (jgnash) - Saturday, 07 May 2011, 18:46 GMT
Last edited by Jelle van der Waa (jelly) - Wednesday, 21 December 2011, 23:13 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Arch Linux package does not include working shell scripts to easily execute the jhindexer and jhsearch programs.

The javahelp2_0_05.zip includes shell scripts, but they do not work within the Arch Linux install. I've attached working shell scripts to be placed in /usr/bin


Additional info:
* package version(s)

* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Jelle van der Waa (jelly)
Wednesday, 21 December 2011, 23:13 GMT
Reason for closing:  Won't fix
Additional comments about closing:  javahelp2 is in AUR
Comment by Craig Cavanaugh (jgnash) - Saturday, 07 May 2011, 18:49 GMT
working shell scripts for Arch Linux
Comment by Stefan Husmann (stefanhusmann) - Saturday, 07 May 2011, 20:42 GMT
How have these scripts to be used to do something reasonable?

trunk]$ jhsearch
java.lang.ArrayIndexOutOfBoundsException: 0
at com.sun.java.help.search.QueryEngine.main(QueryEngine.java:197)

trunk]$ jhindexer
No files specified to index
Usage: java JavaHelp.Index options file ...
Options: -c file config file
-db file generated database file name
-verbose verbose documentation
-nostopwords ignore stop words
-locale language_country_variant
-logfile log file name
Note: config file composition:
IndexRemove /public_html/JavaHelp/demo
IndexPrepend ..
StopWords word1 ... wordN
StopWordsFile stopWordFileName
File /public_html/JavaHelp/demo/first.html
File=/public_html/JavaHelp/demo/second.html
...

tells me nothing.
Comment by Craig Cavanaugh (jgnash) - Sunday, 08 May 2011, 10:39 GMT
jhindexer is normaly used within an ant build script to create the necesaary files for a javahelp index/database.

Example use in an ant file:

<!-- Index the help file, assumes jhindexer is installed and in execution path -->
<exec executable="jhindexer" dir="${build.dir}/default/" osfamily="unix">
<arg line="-db JavaHelpSearch ${build.dir}"/>
</exec>

The link below fully details use of jhindexer and jhsearch
http://download.oracle.com/docs/cd/E19253-01/819-0913/author/searchdb.html

Loading...