OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] webhelpindexer.jar w/o Ant?

On Thu, Feb 10, 2011 at 1:22 AM, David Priest <docs@davidpriest.ca> wrote:
Well, it didn't take long to prove that I can't do it.   Removing the imports and the two Extends still results in a no-ant-class type of error.  I have no idea where else it is making use of, or importing, Ant.

Ant doesn't do any functionality related to webhelpindexer. Ant is needed because indexer is invoked via a Ant taskdef defined in the build.xml under xsl/webhelp folder. 

As I see, only IndexerTask has Ant dependencies. But just removing imports and extends won't do the job, because that class is specifically designed based on the requirements at [1] I've given before. We need to add the main method to it (changing execute() method to main would enough.) Then we have to write the constructor to set htmlDir and indexerLanguage (two Strings. You'll understand if you have a look at build.xml file). This would probably enough to make it available as a standalone jar, though there will be other changes needed to make it compatible with the DocBook distribution. I'll have a look at it, can't guarantee how quick it'll be though. 

Can you send the steps you followed to understand what you are actually trying to do? And the stack traces you got will be helpful too!


David Priest wrote:
I am completely unfamiliar with Java, but familiar with a variety of other languages.  I took a look at the code and I don't *think* the indexer makes use of any Ant facilities, so I suspect all it needs is to be uncoupled from Ant by redefining the method.  I shall take a poke at it myself, but hope that someone with actual Java skills does the same!

Kasun Gajasinghe wrote:

On Wed, Feb 9, 2011 at 5:06 AM, Docs <docs@davidpriest.ca <mailto:docs@davidpriest.ca>> wrote:

   Is there a standalone version of webhelpindexer.jar?  I'm in an
   Ant-free environment.  I can compile webhelp contents from the
   command line, but com.nexwave.nquindexer.IndexerTask expects Ant
   to be in the classpath, making much sadness.

Quick answer is, there isn't! WebHelp was first made as a Ant build, so the webhelpindexer is also created as a Ant Task [1]. It needs to extend|org.apache.tools.ant.Task, which means, ultimately webhelpindexer depends on Ant. I understand your situation, but currently I'm afraid, there's no get around except changing the source AFAIK.|
|The Ant dependency needed by |com.nexwave.nquindexer.IndexerTask, which the main class. So, if you are familiar with Java, you may get webhelpindexer working by changing that file with the help from [1]. In the meantime, I'll see what I can do .

[1] http://ant.apache.org/manual/develop.html


Kasun Gajasinghe,
University of Moratuwa,
Sri Lanka.
Blog: http://kasunbg.blogspot.com <http://kasunbg.blogspot.com/>
Twitter: http://twitter.com/kasunbg

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]