My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
-- Option A: Import your project into Eclipse (recommended) --

Configure Eclipse following the instructions at
http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven#Using_Maven_with_Google_Plugin_for_Eclipse

In Eclipse, go to the File menu and choose:

File -> Import... -> Existing Maven Projects into Workspace

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 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.

GWT developers (those who build GWT from source) may add their
gwt-user project to top of this project's class path in order to use
the built-from-source version of GWT instead of the version specified
in the POM.

Select the project in the Project explorer and select File > Properties

Select Java Build Path and click the Projects tab

Click Add..., select gwt-user, and click OK

Click Order and Export and move gwt-user above Maven Dependencies

-- 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/). 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 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

Change log

r10633 by rj...@google.com on Sep 8, 2011   Diff
Convert DynaTableRF to use maven. Clean up
the docs in the other two
mvn projects a tiny bit.

Review at http://gwt-code-
reviews.appspot.com/1537803

Review by: drfibonacci@google.com
Go to: 
Project members, sign in to write a code review

Older revisions

r10237 by rj...@google.com on May 27, 2011   Diff
Revive samples/expenses from its 2.3
breakage. Also now generates
sample data on demand.

Review at http://gwt-code-
...
r9123 by rj...@google.com on Oct 19, 2010   Diff
Tweaks to samples/expenses/pom.xml:

* comment out two appengine jars
needed to run GAE unit tests that do
not come in properly until you run
...
r9118 by rchan...@google.com on Oct 19, 2010   Diff
Updated README-MAVEN.txt with required
Eclipse plugins
needed to import expenses sample app
as a maven project.

...
All revisions of this file

File info

Size: 2123 bytes, 62 lines

File properties

svn:mime-type
text/plain; charset=us-ascii
svn:eol-style
native
Powered by Google Project Hosting