A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

Jetty scanTargetPattern and reloading messages.properties

View: New views
2 Messages — Rating Filter:   Alert me  

Jetty scanTargetPattern and reloading messages.properties

by Marc_13 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

to me Jetty philosophy is to enable faster development by changing code and visualising modifications without restarting the webapp., especially with its 'scan target' feature.

By default, Jetty scan the 'src/main/webapp' folder in appfuse-light.
I want also that it takes care of changes in 'src/main/resources' folder for detecting changes in files like messages.properties, then restart webapp without restarting itself

In that way, I added a 'scanTargetPattern' in my pom.xml for the 'src/main/resources' folder. But  when I make changes in messages.properties file, Jetty restart appfuse without taking care of those changes (I'm obliged to restart Jetty to see any little change).

So, is anyone know a workaround for this ?

Thanks

Marc

P.S. part of my maven-jetty-plugin configuration
 <scanTargetPatterns>
     <scanTargetPattern>
          <directory>src/main/webapp</directory>
              <includes>
                <include>**/*.xml</include>
                <include>**/*.properties</include>
              </includes>
            </scanTargetPattern>
<scanTargetPattern>
directory>src/main/resources</directory>
              <includes>
               <include>**/*.xml</include>
               <include>**/*.properties</include>
             </includes>
</scanTargetPattern>
          </scanTargetPatterns>



Re: Jetty scanTargetPattern and reloading messages.properties

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You're saying your configuration below doesn't work? If not, you might
try contacting the Jetty user list.

Matt

On Wed, Sep 24, 2008 at 9:35 AM, Marc Siramy <marc.siramy@...> wrote:

> Hello,
> to me Jetty philosophy is to enable faster development by changing code and
> visualising modifications without restarting the webapp., especially with
> its 'scan target' feature.
> By default, Jetty scan the 'src/main/webapp' folder in appfuse-light.
> I want also that it takes care of changes in 'src/main/resources' folder for
> detecting changes in files like messages.properties, then restart webapp
> without restarting itself
> In that way, I added a 'scanTargetPattern' in my pom.xml for
> the 'src/main/resources' folder. But  when I make changes in
> messages.properties file, Jetty restart appfuse without taking care of those
> changes (I'm obliged to restart Jetty to see any little change).
> So, is anyone know a workaround for this ?
> Thanks
> Marc
> P.S. part of my maven-jetty-plugin configuration
>  <scanTargetPatterns>
>      <scanTargetPattern>
>           <directory>src/main/webapp</directory>
>               <includes>
>                 <include>**/*.xml</include>
>                 <include>**/*.properties</include>
>               </includes>
>             </scanTargetPattern>
> <scanTargetPattern>
> directory>src/main/resources</directory>
>               <includes>
>                <include>**/*.xml</include>
>                <include>**/*.properties</include>
>              </includes>
> </scanTargetPattern>
>           </scanTargetPatterns>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

LightInTheBox - Buy quality products at wholesale price!