Hi Lenya devs,

after countless workarounds and lots of outbursts of fury I have now
changed the persistence layer so that documents are stored without
extension:

  foo/index
  foo/index.meta

instead of

  foo/index.xml
  foo/index.xml.meta


There's a simple migration target in migration-build.xml:

  ./build.sh migrate-extensions -Dpublication=default

but it works only for .xml extensions and it doesn't work for
"outsourced" content.

I think it doesn't make sense to generalize this target, it is
more efficient if you modify the target to fit your needs:


  <target name="migrate-extensions">
    <property name="publication" value=""/>
    <move todir="${build.webapp}/lenya/pubs">
      <fileset dir="${build.webapp}/lenya/pubs/${publication}">
        <include name="content/**"/>
        <exclude name="content/*/site.xml"/>
        <exclude name="content/*/sitetree.xml"/>
      </fileset>
      <compositemapper>
        <mapper type="glob" from="*.xml" to="*"/>
        <mapper type="glob" from="*.xml.meta" to="*.meta"/>
      </compositemapper>
    </move>
  </target>


Please complain if problems occur (this will basically happen if
there still are pieces of code which bypass the repository layer).

Sorry for the inconvenience,

-- Andreas

--
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                     [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to