Yes, I know that. My idea is to configure the application to use 
exploded directory instead of war. If war is used on each change of 
static content this war has to be re-builded and redeployed which will 
cost a lot of time and I'm not sure that it's a good idea when is comes 
for development.

I wanna speed up the process of redeployment of html/css in hosted mode 
when is used outer server. Jetty is supporting redeployment but when a 
java file is changed or web.xml the server automatically reloads the 
context. My idea is to run Jetty with a filter for GWT classes ( the 
classes that are interpreted automatically by the hosted mode browser ). 
This will stop the redeployment of the context when some client side 
java file has been changed which will speed up the development of the ui 
interface. Thats why I've tried with:

<scanTargetPatterns>
    <scanTargetPattern>
         <directory>target//myapp-0.0.1-SNAPSHOT//</directory>

                            <excludes>
                                <exclude>**/Admin.class</exclude>

                            </excludes>
    </scanTargetPattern>
</scanTargetPatterns>


But it's not working as I expected. I'm almost sure that there is a such 
way of doing this, but I don't know how to do it exactly.

Regards,
  Miroslav
 
ponthiaux eric wrote:
> You just have to make a war trough maven or any otther framework and
> tell jety to use it .
>
> 2008/11/7, Miroslav Genov <[EMAIL PROTECTED]>:
>   
>> Hello guys,
>>
>>   I was wondering if there is a way to configure maven to deploy on
>> jetty gwt code without recompile of client classes, i.e. with using of
>> excludes in the scanTargetPattern configuration. Currently I'm having a
>> completed set up of GWT with maven and jetty and I'm trying to  speed up
>> the redeployment of the static content in hosted mode. At the moment
>> I've tried two types of deployment:
>>
>> Packaging of the application and running jetty with webdir pointing to
>> the target directory.  To do that I'm executing the following command:
>> /mvn package jetty:run -Dwebdir=target/myapp-0.0.1-SNAPSHOT//
>>
>> When I deploy my application and I change some of the html files, the
>> application doesn't refreshes them. The problem is obvious - html pages
>> are not redeployed to the target directory on save. Here I want to
>> mention that I'm using eclipse as a development environment and maven
>> goal's are started from eclipse.
>>
>> The second situation is when jetty is started with webdir pointing to
>> the src/main/webapp/. In this case the static content and jsp page are
>> reloading like a charm but the problem is that when I change some GWT
>> class Jetty reloads the context. Currently it is done for a few seconds
>> but If I add few more libraries to my project like hibernate and spring
>> this time will be much longer than now.
>>
>> I've tried to exclude the client classes with the followed pattern:
>> <scanTargetPatterns>
>>     <scanTargetPattern>
>>          <directory>target//myapp-0.0.1-SNAPSHOT//</directory>
>>
>>                             <excludes>
>>                                 <exclude>**/Admin.class</exclude>
>>
>>                             </excludes>
>>     </scanTargetPattern>
>> </scanTargetPatterns>
>>
>> But this pattern is not working correctly. I don't know where exactly is
>> the problem. Probably I'm doing something wrong or maybe I'm missing
>> some step.
>>
>> Hope that someone can help. Thanks in advance.
>>
>> Regards,
>>   Miroslav
>>
>>
>>     
>
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to