Hi, I am working on a Spring/Tomcat project and am stuck on how to best package
the context.xml file.
We use context.xml in our local builds, but when building a war for other
environments, we would like to not include the context.xml file.
Any ideas on how to exclude context.xml for non-local builds?
I have a directory structure like this:
+- src/
| +- main/
| | +- java/
| | +- properties/
| | +- local/
| | +- dev/
| | +- sit/
| | +- uat/
| | +- prod/
| | +- resources/
And I am packaging my resources like this:
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/properties/${region}</directory>
<includes>
<include>*.properties</include>
<include>*.xml</include>
</includes>
</resource>
</resources>
</build>
Thanks