Skip to main content

RE: [JAVAHELP] jhindexer problem

No replies
Anonymous

You can create a shell script to run jhindexer, etc. and call that using the ant exec task. There is an example in the Ant documentation on core tasks.

-----Original Message-----
From: Discussion list of JavaHelp
[mailto:JAVAHELP-INTEREST@JAVA.SUN.COM]On Behalf Of
javahelp1@JAVADESKTOP.ORG
Sent: Friday, March 19, 2004 8:54 AM
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVAHELP] jhindexer problem

> > Just in case anybody is following this thread - now
> or in the future
> > - I tried doing the jhindexer command with a config
> file and it now
> > works *every* time.
> >
> > Having to maintain a config file is a bit of a pain
> - I'd rather just
> > do something like
> >
> > jhindexer *.html
>
> It does this already, but if you specify a directory
> it will search for
> all the files in the directory.
>
The first time I read this reply, I thought you were saying that 'jhindexer *.html' would work, tried it, and found that it didn't.

I just reread your reply though and realized that you might have been saying that 'jhindexer sdachelp' (where 'sdachelp' is the highest subdirectory in my /help tree) would index recursively. I tried it and it works fine! Now I'm a happy camper ;-)

> > but maybe a future version of JavaHelp will provide
> a way to build
> > the config file "automagically". In the meantime, I
> guess I'll just
> > have to edit the config file every time I add new
> help files to my
> > system.
>
> Highly unlikely, especially since build scripts (like
> ant or make) can
> do this for you and is what they were designed for in
> the first place.
>
Are there Ant tasks for 'jhindexer', 'hsviewer', etc.? If yes, where are they? I'm not very fluent with Ant yet but as I understand it, you need Ant tasks for a particular command before you can incorporate them into Ant scripts. Correct me if I'm wrong....

Or will the 'exec' task in Ant do the job? If yes, can anyone point me to an example of an 'exec' task running 'jhindexer'?

'Henry'

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

*****
"The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers." 113

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.