W dystrybucji GWT znajdują się cztery skrypty cmd, które w największym skrócie można nazwać kreatorami. Każdy z nich jest wykorzystywany na różnym etapie tworzenia aplikacji.
projectCreator
GWT pozwala na łatwą integrację ze środowiskiem Eclipse, dlatego też jeżeli podczas tworzenia aplikacji programista zamierza korzystać z tego IDE, wówczas powinien użyć tego narzędzia. Kreator ten zakłada strukturę katalogów (wraz z plikami .project oraz .classpath) , która pozwoli easily import the application is created as a project on Eclipse.
exercising command:
MyAppPrj projectCreator-eclipse-out MyAppDir will create the following structure: MyAppDir Created directory \\ src Created directory
MyAppDir \\ test Created file
MyAppDir \\.
project Created file MyAppDir \\. Classpath applicationCreator This wizard performs three functions:
- prepared packet structure for an application.
- Generates default HTML files and Java fastened in a simple XML file module. These files are a simple application from which you can begin to build more advanced functionality.
- Creates cmd scripts that allow you to recompile and run the application in hosted mode mode.
applicationCreator-out MyAppDir com.example.client.MyApp exercising command (from Eclipse): MyAppPrj applicationCreator-eclipse-out MyAppDir com.example.client.MyApp Created will be the following structure: MyAppDir Created directory \\ src \\ com \\ example
MyAppDir Created directory \\ src \\ com \\ example \\ client Created directory
MyAppDir \\ src \\ com \\ example \\ public Created file
MyAppDir \\ src \\ com \\ example \\ MyApp.gwt.xml
Created MyAppDir file \\ src \\ com \\ example \\ public \\ MyApp.html
Created MyAppDir file \\ src \\ com \\ example \\ client \\ MyApp.java
Created file MyAppDir \\ MyApp-shell.cmd
Created file MyAppDir \\ MyApp-compile.cmd In the case of-eclipse in addition to a: Created file MyAppDir \\ MyApp.launch i18nCreator If there is a shortcut to i18n internationalization of course, about . This wizard produce simple text files that contain solid properties in the form of key / value. Generates a script cmd [Appl]-i18n, which is based on file properties generates a Java interface through which we have access to the texts of constant application GWT Java code.
exercising command (without Eclipse):
i18nCreator-out MyAppDir com.example.client.MyAppConstants exercising command (from Eclipse): MyAppPrj i18nCreator-eclipse-out MyAppDir com.example.client.MyAppConstants Created will be the following structure: Created MyAppDir file \\ src \\ com \\ example \\ client \\ MyAppConstants.properties
Created file MyAppDir \\ MyAppConstants-i18n.cmd If the-eclipse in addition to a: Created file MyAppDir \\ MyAppConstants-i18n . launch jUnitCreator Creates the appropriate directory and files in which to place the unit testing GWT applications.
exercising command (without Eclipse):
junitCreator-junit c: \\ junit.jar-module com.example.client.MyApp-out MyAppDir com.example.client.MyAppTest exercising command (from Eclipse): junitCreator-junit c: \\ junit.jar-eclipse-module MyAppPrj com.example.client.MyApp-out MyAppDir com.example.client.MyAppTest will create the following structure: MyAppDir Created directory \\ test \\ com \\ example \\ client \\ test Created file
MyAppDir \\ test \\ com \\ example \\ client \\ test \\ MyAppTest.java Created file
MyAppDir \\ MyAppTest-hosted.cmd
Created file MyAppDir \\ MyAppTest-web.cmd In the case of the-eclipse in addition to a: Created file MyAppDir \\ MyAppTest-hosted.launch
Created file MyAppDir \\ MyAppTest-web. launch Wizards can, within just a few moments to build your first application in GWT, so you do not even discourage impatient. Of course, more important is that you do not need to perform repetitive tasks that can perform automated for us.