I just fixed the startupUrl missunderstanding of GWT docs.A new SNAPSHOT has
been deployed (1.1-20090418.082909-35), please test it :)

Cheers,
Nicolas

2009/4/18 nicolas de loof <nicolas.del...@gmail.com>

> Hi
> Gwt compiler output is set by default to webapp source folder so that you
> can easily startup a "noserver" server using mvn jetty:run or equivalent
> tomcat setup.
>
> You can override this by configuration if you wish, but this doesn't breack
> building the WAR anyway.
>
> Still need to improve the doc ;)
>
> 2009/4/18 Farrukh Najmi <farr...@wellfleetsoftware.com>
>
>  Hi Nicolas,
>>
>> Thank you for all your help and support on the list.
>>
>> I am facing the same problem migrating from GWT 1.5.3 /
>> com.totsp.gwt:maven-googlewebtoolkit2-plugin to GWT 1.6.4 /
>> org.codehaus.mojo:gwt-maven-plugin:1.1-SNAPSHOT.
>>
>> Being new to both the gwt-maven-plugin and GWT 1.6.4 I am not quite
>> following what to do to fix the problem where when I run:
>>
>> mvn -e -X -DrunTarget=com.test.Application/Application.html  gwt:run
>>
>> I get a hosted browser window with URL:
>>
>> http://localhost:8888/Application.html
>>
>> instead of url:
>> http://localhost:8888/com.test.Application/Application.html
>>
>> Specifically, what steps do I need to take to have the hosted browser show
>> the correct URL (
>> http://localhost:8888/com.test.Application/Application.html)
>>
>> BTW I generated my project structure via:
>>
>> mvn -Dgwt.version=1.6.0 archetype:generate
>> -DarchetypeGroupId=org.codehaus.mojo  \
>> -DarchetypeArtifactId=gwt-maven-plugin    -DarchetypeVersion=1.1-SNAPSHOT
>> -DgroupId=com.test -DartifactId=gwt-latest
>>
>> Lastly, I am not sure why I am getting generated files in the following
>> directories:
>>
>> /src/main/webapp/.gwt-tmp
>> src/main/webapp/com.test.Application
>>
>> Why are these not being written to my target tree.
>>
>> In case you need it my very minimal project is available as a zip here:
>>
>> <http://www.wellfleetsoftware.com/files/gwt-latest.zip><http://www.wellfleetsoftware.com/files/gwt-latest.zip>
>>
>> Thanks for your help.
>>
>>
>> nicolas de loof wrote:
>>
>> According to the GWT doc (
>> http://code.google.com/intl/fr-FR/webtoolkit/doc/1.6/ReleaseNotes_1_6.html)<http://code.google.com/intl/fr-FR/webtoolkit/doc/1.6/ReleaseNotes_1_6.html>
>>  this is the expected behaviour :
>>
>>  "
>>
>> Switch from GWTShell to HostedMode
>>
>> the following program arguments:
>>
>> -out www com.google.gwt.TestApp/TestApp.html
>>
>> become:
>>
>> -startupUrl TestApp.html com.google.gwt.TestApp
>>
>>  Open your module *.gwt.xml* file and add a rename-to attribute to the
>> module definition. When your module is compiled, it will be output to a
>> directory with this name. For example, the following would output your app
>> to a directory called 'testapp' in the *war* directory.
>>
>> <module rename-to='testapp'>
>>
>>
>>   ...</module>
>>
>> "
>>
>>
>>
>> 2009/4/17 Christophe Lombart <christophe.lomb...@gmail.com>
>>
>>> Hi all,
>>>  I'm trying to use the maven gwt plugin with GWT 1.6.4 with the noserver
>>> option.
>>> When I'm executed the mvn command 'gwt:run', the url is not correct, it
>>> forgets the module name.
>>>
>>>  In my case it is
>>>
>>> http://localhost:8080/JcrBrowserApplication.html
>>>
>>> instead of
>>>
>>>
>>> http://localhost:8080/org.apache.sling.browser.JcrBrowserApplication/JcrBrowserApplication.html
>>>
>>>  but I specify the module name in the runTarget option. Is it a bug or do
>>> I have to use another setting ?
>>> here is my plugin definition.
>>>  Thanks,
>>> Christophe
>>>
>>>
>>>  <plugin>
>>>
>>>         <groupId>org.codehaus.mojo</groupId>
>>>
>>>         <artifactId>gwt-maven-plugin</artifactId>
>>>
>>>         <version>1.1-SNAPSHOT</version>
>>>
>>> <configuration>
>>>
>>> <gwtVersion>${gwt.version}</gwtVersion>
>>>
>>> <noServer>${gwt.noserver}</noServer>
>>>
>>> <port>${gwt.port}</port>
>>>
>>>
>>> <runTarget>org.apache.sling.browser.JcrBrowserApplication/JcrBrowserApplication.html</runTarget>
>>>
>>> <!-- i18nConstantsWithLookup>false</i18nConstantsWithLookup -->
>>>
>>> <extraJvmArgs>-Xmx512m -Xss1024k</extraJvmArgs>
>>>
>>>
>>>
>>> </configuration>
>>>
>>>         <executions>
>>>
>>>             <execution>
>>>
>>>                 <goals>
>>>
>>>                     <goal>compile</goal>
>>>
>>>                     <!-- goal>generateAsync</goal>
>>>
>>> <goal>eclipse</goal>
>>>
>>> <goal>eclipseTest</goal -->
>>>
>>>                 </goals>
>>>
>>>             </execution>
>>>
>>>         </executions>
>>>
>>>     </plugin>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Farrukh
>>
>> Web: http://www.wellfleetsoftware.com
>>
>>  --------------------------------------------------------------------- To
>> unsubscribe from this list, please visit:
>> http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to