Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Artur Signell 0e25cd6ce6 Fisrt version of readme for GitHub (#10931) před 11 roky
.settings Added Eclipse project files (#9998) před 11 roky
WebContent Created maintenance release notes for 7.0.x releases. #10881 před 11 roky
all Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
build Made build process easier for Eclipse users (#9998) před 11 roky
buildhelpers Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
checkstyle Added check for carriage return (#9065) před 11 roky
client Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
client-compiled Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
client-compiler Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
eclipse #7537 Enable Off/On formatter tags in eclipse Vaadin formatter profile před 12 roky
scripts Fix merge checker issues před 11 roky
server Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
shared Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
theme-compiler Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
themes Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
uitest Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
.classpath Fix .classpath that was broken in a rebase před 11 roky
.gitignore Fixes #6714 #10330 - wraps theme in themename{}, creates legacy-styles.css, updates themes to support this. před 11 roky
.project Removed Javascript buider and nature to avoid Eclipse choking on validating widgetset files (#9998) před 11 roky
README.md Fisrt version of readme for GitHub (#10931) před 11 roky
build.properties Refactor OSGi manifest attribute handling to support import/export better (#9793) před 11 roky
build.xml Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
common.xml Renamed "tests" target to "test" and added "test-all" (#9998) před 11 roky
gwt-files.xml Made build process easier for Eclipse users (#9998) před 11 roky
ivy-taskdefs.xml Checkstyle for Vaadin #9065 před 11 roky
ivysettings-publish.xml Snapshot deployment to Maven now works (#9299) před 11 roky
ivysettings.xml Always use smartsprites ivy.xml from the correct dir před 11 roky
pom-template.xml Added missing scm and developer parts před 11 roky
publish.properties Publish to SFTP (#9299) před 11 roky
publish.xml Avoid publishing 'all' zip to Maven (#9299) před 11 roky

README.md

Cloning the project repositories

Vaadin 7 consists of three separate repositories

Start by cloning these repositories into the same folder:

git clone https://github.com/vaadin/vaadin.git
git clone https://github.com/vaadin/gwt.git
git clone https://github.com/vaadin/gwt-tools.git

The vaadin and gwt repositories contain project code. The gwt-tools project only contain dependency jars used by the other projects.

Do not rename the repositories as the rest of this document relies on using the standard naming.

Setting up Eclipse to Develop Vaadin 7

Assuming you have cloned the repositories as described in “Cloning the project repositories” above, you can import the vaadin and gwt projects into Eclipse as follows:

Start Eclipse

Start Eclipse and use the root checkout folder (the one containing the vaadin, gwt and gwt-tools folders) as the workspace folder

Define Required Variables for the GWT Eclipse Projects

To be able to find all files, the GWT project requires you to define a couple of variables:

  1. Open Window -> Preferences (Windows) or Eclipse -> Preferences (Mac)
  2. Go to General -> Workspace -> Linked Resources
  3. Add a new Path Variable GWT_ROOT referring to the gwt folder containing the gwt project GWT_ROOT
  4. Go to Java -> Build Path -> Classpath Variables
  5. Add two new variables
    1. GWT_TOOLS referring to the gwt-tools folder containing the dependency jars
    2. JDK_HOME referring to your jdk installation directory GWT_TOOLS
  6. Go to Java -> Compiler
    1. Check that the compliance level has been set to 1.6 (or higher)

Import the Projects into the Workspace

  1. Do File -> Import -> General -> Existing Projects into Workspace ImportProject
  2. Select the workspace folder as root directory
  3. Click “deselect all” and select
    1. gwt-dev
    2. gwt-user
    3. vaadin
  4. Click “finish” to complete the import

FinishImportProject

You should now have three projects in your workspace and they should all compile without errors (there might be warnings).

Note that the first compilation takes a while to finish as Ivy downloads dependencies used in the projects.

Compiling the Default Widget Set and Themes

Compile the default widget set by executing the default target in build/ide.xml in the vaadin project. In Eclipse this is done by opening build/ide.xml, right clicking on it and choosing Run As -> Ant Build. CompileWidgetSet

Running a UI test

The vaadin project includes an embedded Jetty which is used for running the UI tests. It is a standard Java application: com.vaadin.launcher.DevelopmentServerLauncher. Launch it in debug mode in Eclipse by right clicking on it and selecting Debug As -> Java Application.

This launches a Jetty on port 8888 which allows you to run any UI class in the project by opening http://localhost:8888/run/<UI class name>?restartApplication in your browser, e.g. http://localhost:8888/run/com.vaadin.tests.components.label.LabelModes?restartApplication (Add ?restartApplication to ensure).

Running JUnit tests

The JUnit tests for the projects can be run using

ant test

Running this in the gwt directory will run the GWT JUnit tests. Running it in the vaadin directory will run the Vaadin JUnit tests.

Running the Vaadin TestBench tests currently requires access to a correctly configured TestBench 2 cluster, only available inside Vaadin.

Building a package

The distribution files can be built in a few steps. First build the gwt project by running

ant
in the gwt directory. The elemental package needs to be built separately:
ant elemental
Building the elemental package is not possible on Windows as it requires gcc.

Move to the vaadin project directory and unpack the previously built gwt jars

ant -f gwt-files.xml unpack.gwt
Then build the vaadin project by running
ant
in the vaadin directory.