From: José M. F. G. <jm...@us...> - 2012-01-30 14:25:03
|
Dear eXistentialists, I have been looking at the eXist packages system (.xar files) because development version of AtomicWiki is now installed in such way, and it seems quite robust. But, after a test I have realized that full system backups do not include those packages in the backup directory/zip. Is there some plans to include in the backup the installed packages? Kind Regards, José María -- "La violencia es el último recurso del incompetente" - Salvor Hardin en "La Fundación" de Isaac Asimov "A friend should be a master at guessing and keeping still: you must not want to see everything" - Friedrich Nietzche "If you ever start taking things too seriously, just remember that we are talking monkeys on an organic spaceship flying through the universe" - Joe Rogan "Premature optimization is the root of all evil." - Donald Knuth José María Fernández González e-mail: jos...@gm... |
From: Wolfgang M. <wol...@ex...> - 2012-01-30 22:45:42
|
Hi José, > I have been looking at the eXist packages system (.xar files) because development version of AtomicWiki is now installed in such way, and it seems quite robust. But, after a test I have realized that full system backups do not include those packages in the backup directory/zip. Is there some plans to include in the backup the installed packages? The problem is that the expath package manager unzips the packages into webapp/WEB-INF/expathrepo/ and reads the package metadata from there. We thus end up with two versions of the package: the one deployed into the db and the original one in webapp/WEB-INF/expathrepo/. This is a bit unfortunate. I planned to change the package manager to keep its metadata in the db and remove the source package once it got deployed, but I don't think I'll have time for it during the weeks to come. If anybody wants to dig into this... Wolfgang |
From: José M. F. G. <jm...@us...> - 2012-01-31 10:50:10
|
Hi Wolf, I can take a look in that in my spare time, but I need some initial clues about what to look and change as I don't know the packages subsystem. José María On 30/01/12 23:45, Wolfgang Meier wrote: > Hi José, > >> I have been looking at the eXist packages system (.xar files) because development version of AtomicWiki is now installed in such way, and it seems quite robust. But, after a test I have realized that full system backups do not include those packages in the backup directory/zip. Is there some plans to include in the backup the installed packages? > > The problem is that the expath package manager unzips the packages > into webapp/WEB-INF/expathrepo/ and reads the package metadata from > there. We thus end up with two versions of the package: the one > deployed into the db and the original one in > webapp/WEB-INF/expathrepo/. This is a bit unfortunate. > > I planned to change the package manager to keep its metadata in the db > and remove the source package once it got deployed, but I don't think > I'll have time for it during the weeks to come. If anybody wants to > dig into this... > > Wolfgang -- "La violencia es el último recurso del incompetente" - Salvor Hardin en "La Fundación" de Isaac Asimov "A friend should be a master at guessing and keeping still: you must not want to see everything" - Friedrich Nietzche "If you ever start taking things too seriously, just remember that we are talking monkeys on an organic spaceship flying through the universe" - Joe Rogan "Premature optimization is the root of all evil." - Donald Knuth José María Fernández González e-mail: jos...@gm... |
From: Wolfgang M. <wol...@ex...> - 2012-01-31 17:50:16
|
Hi José, > I can take a look in that in my spare time, but I need some initial > clues about what to look and change as I don't know the packages subsystem. If you look at org.exist.xquery.modules.expathrepo.InstallFunction (in EXIST_HOME/extensions/modules/src), you should get the connection to most of the used classes. Within a query, the eXist repository is available through XQueryContext.getRepository(). Right now a FileSystemStorage is used and I guess we would need to replace that with our own implementation. FileSystemStorage is implemented within the expath-pkg code: http://expath-pkg.googlecode.com/svn/trunk I hope this helps. Wolfgang |
From: José M. F. G. <jm...@us...> - 2012-02-02 12:34:29
|
Hi Wolf, thanks for the links. I agree with you, I think I need to implement an EXistStorage class inheriting from Storage. José María On 31/01/12 18:44, Wolfgang Meier wrote: > Hi José, > >> I can take a look in that in my spare time, but I need some initial >> clues about what to look and change as I don't know the packages subsystem. > > If you look at org.exist.xquery.modules.expathrepo.InstallFunction (in > EXIST_HOME/extensions/modules/src), you should get the connection to > most of the used classes. Within a query, the eXist repository is > available through XQueryContext.getRepository(). Right now a > FileSystemStorage is used and I guess we would need to replace that > with our own implementation. FileSystemStorage is implemented within > the expath-pkg code: > > http://expath-pkg.googlecode.com/svn/trunk > > I hope this helps. > > Wolfgang -- "La violencia es el último recurso del incompetente" - Salvor Hardin en "La Fundación" de Isaac Asimov "A friend should be a master at guessing and keeping still: you must not want to see everything" - Friedrich Nietzche "Apártate progresivamente, sin rupturas violentas, del amigo para quien representas un medio en vez de ser un fin" - Santiago Ramón y Cajal "If you ever start taking things too seriously, just remember that we are talking monkeys on an organic spaceship flying through the universe" - Joe Rogan "Premature optimization is the root of all evil." - Donald Knuth José María Fernández González e-mail: jos...@gm... |