[daisy] Daisy detachment - revision

Paul Focke paul at outerthought.org
Wed Jul 19 00:56:11 CDT 2006


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 
> 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/ 
>
>
> 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>
    </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



More information about the daisy mailing list