[daisy] how to register custom JARs?

Bruno Dumon bruno at outerthought.org
Mon Jun 18 10:51:16 CDT 2007


On Mon, 2007-06-18 at 16:57 +0200, Hofmann. David wrote:
> 
> Thank you, this works fine.
> My next question is: How can I get the absolute Path to the publication
> output directory?
> BookInstanceLayout.getPublicationOutputPath(context.getPublicationOutput
> Name()); returns something like /publications/javahelpsource/, but I
> need the complete path to the bookstore instance directory plus the
> suffix, e.g.
> C:/daisywikidata/bookstore/instance/publications/javahelpsource/.
> 

The closest we have is getResourceURI() on BookInstance.

There is a java.io.File constructor which takes an URI as argument so
you can work back like that.

The reason there's no immediate method to access the file location is
that the bookstore implementation could be replaced by something which
is not based on a filesystem.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



More information about the daisy mailing list