Thanks for the tip Peter. We changed from WEB-INF to individual XML
files recently, but your solution may be better. Here's what we have
for Spring MVC for instance:
<scanTargets>
<scanTarget>src/main/webapp/WEB-INF/applicationContext.xml</scanTarget>
<scanTarget>src/main/webapp/WEB-INF/dispatcher-servlet.xml</scanTarget>
<scanTarget>src/main/webapp/WEB-INF/menu-config.xml</scanTarget>
<scanTarget>src/main/webapp/WEB-INF/urlrewrite.xml</scanTarget>
<scanTarget>src/main/webapp/WEB-INF/validation.xml</scanTarget>
<scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
</scanTargets>
They've also added wildcard support in the latest release:
http://jira.codehaus.org/browse/JETTY-346Matt
On 6/16/07, Peter Schneider-Manzell <
[hidden email]> wrote:
> Hi all!
>
> Currently I'm developing a web application based on Appfuse 2.0-M5.
> In order to speed up edvelopment, I start up jetty with mvn jetty:run and
> edit the JSPs directly under /WEB-INF/pages.
>
> The problem: Everytime I save a changed JSP, the jetty server reloads, which
> takes serious amount of time.
> Here's the solution:
>
> Open your "master"- pom.xml and replace the following part
>
> <plugin>
> .....
> <scanTargets>
> <scanTarget>src/main/webapp/WEB-INF</scanTarget>
> </scanTargets>
> ......
> </plugin>
>
> with this entry:
>
> <plugin>
> .....
> <scanTargetPatterns>
> <directory>src/main/webapp/WEB-INF</directory>
> <excludes>
> <exclude>**/*.jsp</exclude>
> </excludes>
> </scanTargetPatterns>
> ......
> </plugin>
>
>
>
> This prevents jetty from reloading everytime you edit a JSP page.
>
> Maybe this helps someone else editing JSPs with a running jetty...
>
>
> Bye,
>
> Peter
>
> PS:
>
> @Matt: Thanks again for Appfuse! This is my 5th web application based on
> Appfuse (Started with Appfuse 1.5 ;)), and everything works like a charm!
>
--
http://raibledesigns.com---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]