[daisy] Daisy detachment - revision
Marc Portier
mpo at outerthought.org
Wed Jul 19 02:00:15 CDT 2006
Paul Focke wrote:
> tim_cranfield at goldenboat.net wrote:
>> I have committed a new version of the detachment which uses xmlbeans
>> and includes the use of a file "mapping.xml" for each document to
>> record id->name mappings and other useful information not available
I don't think we need this per document, do we?
per daisy-repo-server seems enough, no?
or put differently, assuming we limit all documents in one ddz file to
be detached from the same daisy-repo-server: one per ddz file should do
>> offline. I put the xmlbeans generated jar file for the mapping in:
>> https://svn.cocoondev.org/repos/daisy/contrib/gsoc2006/tim/detachment/core/src/resources/
>>
>>
src/resources is for stuff that should go into your jar file,
these are typically then accessed in your code with
Class[Loader].getResource[AsStream]()
good example: the logo we did earlier
>> I saw Marc has a separate project file in xmlschema-bindings. I was
>> not sure how to include this new jar file in the dependencies.
> If you look in the project.xml in the xmlschema-bindings directory
> you'll see
>
> <groupId>daisy</groupId>
> <id>daisy-detachment-xmlschema-bindings</id>
> ...
> <currentVersion>2.0-dev</currentVersion>
>
> I'm guessing your core project will want to depend on the
> xmlschema-bindings. So you'll add an entry to you dependencies that look
> like this :
> <dependency>
> <groupId>daisy</groupId>
> <artifactId>daisy-detachment-xmlschema-bindings</artifactId>
> <version>2.0-dev/version>
this makes me think about deciding which daisy-release we should target
with this project... 1.5 or 2.0?
Tim, to what daisy-repo release are you developing now?
I had been testing it (and seen it working) towards the svn-head prior
to the id-changes.
> </dependency>
>
> Just be sure that you compile the xmlschema-bindings with 'maven
> jar:install' this will copy the jar into your local maven repository
> (just in case jar:install isn't done by default).
>
>
>>
>> I still have a problem with the java.util.zip. I can not zip and unzip
>> nested directories. If anyone has some code for this I would
>> appreciate it.
>
> The daisy backup tool has a bit of zipping code in the BackupHelper
> class. You can find it here :
> https://svn.cocoondev.org/repos/daisy/trunk/daisy/applications/backuptool/src/java/org/outerj/daisy/backupTool/BackupHelper.java
>
>
> Paul
>
regards,
-marc=
--
Marc Portier http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at http://blogs.cocoondev.org/mpo/
mpo at outerthought.org mpo at apache.org
More information about the daisy
mailing list