Revision: 9110
Author: [email protected]
Date: Sat Oct 16 17:24:12 2010
Log: Removed stale information in the Expenses Sample App README-MAVEN.txt
Review at http://gwt-code-reviews.appspot.com/1003801
http://code.google.com/p/google-web-toolkit/source/detail?r=9110
Modified:
/trunk/samples/expenses/README-MAVEN.txt
=======================================
--- /trunk/samples/expenses/README-MAVEN.txt Wed Aug 25 11:12:04 2010
+++ /trunk/samples/expenses/README-MAVEN.txt Sat Oct 16 17:24:12 2010
@@ -1,22 +1,15 @@
---- Generated by GWT WebAppCreator ---
-
-Congratulations, you've successfully generated a starter project! What
next?
-
-- Option A: Import your project into Eclipse (recommended) --
-If you use Eclipse, you can simply import the generated project into
Eclipse.
-We've tested against Eclipse 3.4 and 3.5. Later versions will likely also
-work, earlier versions may not.
-
-If the directory containing this file does not have a .classpath
or .project
-file, generate them by running 'ant eclipse.generate'
-
-Eclipse users will need to have the m2eclipse, or equivalent, pluigin
installed.
-Instructions for how to install the m2eclipse plugin can be found here:
-http://m2eclipse.sonatype.org/installing-m2eclipse.html
-
-Eclipse users will also want to run "mvn package" before importing into
Eclipse.
-This will unpack the App Engine SDK to the local repository.
+If you use Eclipse, you can simply import the generated project into
+Eclipse. We've tested against Eclipse 3.5. Later versions will likely
+also work, earlier versions may not.
+
+Eclipse users will need to have the m2eclipse, or equivalent, pluigin
+installed. Instructions for how to install the m2eclipse plugin can
+be found here: http://m2eclipse.sonatype.org/installing-m2eclipse.html
+
+Ensure Eclipse is configured to use Java 1.6 as this sample uses
+AppEngine.
In Eclipse, go to the File menu and choose:
@@ -24,46 +17,41 @@
Browse to the directory containing this file,
select "Expenses".
-
+
Click Finish.
-
+
You can now browse the project in Eclipse.
-To launch your web app in GWT development mode, go to the Project ->
Properties
-and expand the Google menu item. From there:
-
- Navigate to App Engine item, select "Use App Engine", and specify which
App Engine
- SDK to use.
-
- Navigate to the Web Appliation item, select "This project has a WAR
directory",
- speicigy src/main/webapp, and uncheck "Launch and deploy...".
-
- Navigate to Web Toolkit, select "use Google Web Toolkit", and specify
which
- GWT SDK you want to use.
-
- Go to the Run menu item and select Run -> Debug as -> Web Application.
-
+To launch your web app in GWT development mode
+
+ Go to the Run menu item and select Run -> Run as -> Web Application.
+
+ - To load a set of initial data choose: LoadExpensesDB.html
+
+ - To run the Expenses Application choose: Expenses.html
+
+ - To run the Mobile version of the Expenses Application choose:
+ ExpensesMobile.html
+
When prompted for which directory to run from, simply select the
directory
that Eclipse defaults to.
You can now use the built-in debugger to debug your web app in
development mode.
-If you supplied the junit path when invoking webAppCreator, you should see
-launch configurations for running your tests in development and production
-mode.
-
-- Option B: Build from the command line with Maven --
-If you prefer to work from the command line, you can use Maven to build
your
-project. (http://maven.apache.org/) Maven uses the supplied 'pom.xml' file
-which describes exactly how to build your project. This file has been
tested
-to work against Maven 2.2.1 The following assumes 'mvn' is on your command
+If you prefer to work from the command line, you can use Maven to
+build your project (http://maven.apache.org/). You will also need Java
+1.6 JDK. Maven uses the supplied 'pom.xml' file which describes
+exactly how to build your project. This file has been tested to work
+against Maven 2.2.1. The following assumes 'mvn' is on your command
line path.
-To run development mode, just type 'mvn gae:run'.
+To run development mode use the Maven GWT Plugin.
+
+ cd src/main/webapp; mvn -f ../../../pom.xml gwt:run
To compile your project for deployment, just type 'mvn package'.
For a full listing of other goals, visit:
http://mojo.codehaus.org/gwt-maven-plugin/plugin-info.html
-
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors