Sorry, stupid gmail, I hit a key and it sent it pre-maturely.

Anyways, I have some hibernate xml files that I want copied over that are in
that domainimpl/user directory but right now with this config it's copying
all the files in that directory over, java files and everything.

How do I make it so that it copies over just the xml files in the specified
directory?  The documentation on resource wasn't clear on how to do this.

Also, is this the right way to go about doing this?  I'm just trying to copy
my *.hbm.xml hibernate mapping files over when I compile.  Is there another
approach?

Thanks,
Christian

On 2/19/06, Christian Cabanero <[EMAIL PROTECTED]> wrote:
>
> I setup a particular directory to be a resource in the build section my
> POM but how do I make it so that only *.xml files get copied?
>
> For example, I have this in my build element of my POM:
>
> <resources>
>             <resource>
>                 <targetPath>amazon/nownow/domainimpl/user</targetPath>
>
> <directory>src/main/java/amazon/nownow/domainimpl/user/</directory>
>                 <filtering>true</filtering>
>             </resource>
>             <resource>
>                 <targetPath></targetPath>
>                 <directory>src/main/resources</directory>
>             </resource>
>         </resources>
>

Reply via email to