Right, and that's what I'm doing for my Spring context files.
However, I prefer to keep my Hibernate mapping files right next to the
classes they describe.
On 2/9/06, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
> The usual practice is putting xml files in resources folder, so you
> don't need the resources section
>
> On 2/8/06, Matt Raible <[EMAIL PROTECTED]> wrote:
> > I'm trying to include both files from src/main/resources, as well as
> > src/main/java/**/*.xml. I've found that the following works:
> >
> > <build>
> > <defaultGoal>package</defaultGoal>
> > <resources>
> > <resource>
> > <directory>src/main/resources</directory>
> > </resource>
> > <resource>
> > <directory>src/main/java</directory>
> > <includes>
> > <include>**/*.xml</include>
> > </includes>
> > </resource>
> > </resources>
> > </build>
> >
> > But this doesn't:
> >
> > <build>
> > <defaultGoal>package</defaultGoal>
> > <resources>
> > <resource>
> > <directory>src/main/resources</directory>
> > </resource>
> > <resource>
> > <directory>${project.build.sourceDirectory}</directory>
> > <includes>
> > <include>**/*.xml</include>
> > </includes>
> > </resource>
> > </resources>
> > </build>
> >
> > It seems like it might be better to use variables instead of
> > hard-coded paths. But then again the paths are more explict and seem
> > to work better. Any advice on a best practice here?
> >
> > Thanks,
> >
> > Matt
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]