Is there a reason you can't put them into WEB-INF/hbm to start off with?

On 11/4/05, Jamie Bisotti <[EMAIL PROTECTED]> wrote:
> My project is using Hibernate, so we have *.hbm.xml files alongside the
> classes they are associated with in the package structure. For example:
> src
> java
> com
> foo
> MyFooClass.java
> MyFooClass.hbm.xml
> bar
> MyBarClass.java
> MyBarClass.hbm.xml
>
> I need to put *.hbm.xml into WEB-INF/hbm becuase I need to tell Hibernate to
> get all the mappings from a single directory (that way, other components can
> add to the system when they are installed). So, I'd like for it to look like
> this:
> target
> myProject
> WEB-INF
> hbm
> MyFooClass.hbm.xml
> MyBarClass.hbm.xml
>
>
> Currently, I'm trying to do the following in my project.xml:
> <resource>
> <directory>${basedir}/src/java</directory>
> <includes>
> <include>**/*.hbm.xml</include>
> </includes>
> <targetPath>/../myProject/WEB-INF/hbm</targetPath>
> <filtering>false</filtering>
> </resource>
>
> Unfortunately, it seems to be keeping the package structure; so it looks
> like this:
> target
> myProject
> WEB-INF
> hbm
> com
> foo
> MyFooClass.hbm.xml
> bar
> MyBarClass.hbm.xml
>
> Is there anyway to get the resource copy to "flatten" the resources during
> the copy and leave off the package directories? Am I just overlooking
> something simple?
>
> --
> Jamie Bisotti
>
>


--
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw

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

Reply via email to