Re: Loading data maps from JARs

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Feb 16 2010 - 08:00:25 EST

  • Next message: Borut Bolčina: "Re: Loading data maps from JARs"

    On Feb 16, 2010, at 2:38 PM, Borut Bolčina wrote:

    > Question is: Can ResourceLocator be configured to read mapping files
    > my-map-1.map.xml and my-map-2.map.xml from the root of project-
    > model1.jar
    > and project-model2.jar?
    >
    > The DefaultConfiguration read from classpath, but it seems it does
    > not find
    > mapping files inside the JARs (at root of it).

    It is odd that it doesn't work. When looking for DataMap XML file all
    Cayenne does is ClassLoader.getResource()

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Feb 16 2010 - 08:00:57 EST