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ů.
Leif Åstrand 729110dbdb Ignore compiled valo test themes před 9 roky
.settings Update copyright year to 2014 před 10 roky
WebContent Revert "Fix background color of Notification in chameleon theme (#14246)" před 9 roky
all Remove theme-compiler and replace with external vaadin-sass-compiler před 10 roky
build Don't try to build valo on 7.2 před 9 roky
buildhelpers Omit BOM when parsing issue list for release notes před 9 roky
checkstyle Ignore irrelevant header lines in checkstyle configuration před 10 roky
client Fix the closing of a popup DateField (#14086, #14375). před 9 roky
client-compiled Reapply "Disable closure compiler (#13778)" před 10 roky
client-compiler DelegateToWidget will now be run even for parent states (#14059) před 9 roky
eclipse Modified Coding Conventions to not have a new line after annotations on před 10 roky
gwt Revert "Fixing problem caused by release/7.2.6/39c3ab667db7ab7b2aa9cb4449e4ccad840135b3" před 9 roky
liferay Added dummy checkstyle and test targets to liferay module před 10 roky
push Update Atmosphere runtime to 2.1.2.vaadin3 (#13971) před 9 roky
scripts Script for installing build artifacts to the local Maven repository před 10 roky
server fixes incorrect JSONArray/String usage in ServerRpcHandler (#14471) před 9 roky
shared TextArea size get reset when css resize is set (#14080) před 9 roky
tests/testbench/com/vaadin/tests/components Update copyright year to 2014 před 10 roky
themes Override elements must be after dependency elements #13532 před 10 roky
uitest DisappearingComponents test upgrade (#14292) před 9 roky
.classpath Update uitest/ivy.xml to use build.properties (#13532) před 10 roky
.gitignore Ignore compiled valo test themes před 9 roky
.project Removed Javascript buider and nature to avoid Eclipse choking on validating widgetset files (#9998) před 11 roky
README.md GWT requires max 1.6 compiler compliance level currently - #12345 před 10 roky
build.properties Upgraded SASS compiler to 0.9.6 před 10 roky
build.xml Extracted integration-test target. před 10 roky
common.xml List authors in release notes (#13612) před 10 roky
gwt-files.xml Reformatted using Ant editor (#12040) před 11 roky
ivy-taskdefs.xml Formatted XML files using defined rules (#11956) před 11 roky
ivysettings-publish.xml Unified xml files to end with new line před 10 roky
ivysettings.xml Remove theme-compiler and replace with external vaadin-sass-compiler před 10 roky
pom-template.xml Unified xml files to end with new line před 10 roky
publish.properties Publish to SFTP (#9299) před 11 roky
publish.xml Merge branch '7.1' into testbench4 před 10 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

Install IvyDE

You’ll need the Apache Ivy plug-in for Eclipse to build the project later on, in “Compiling the Default Widget Set and Themes”.

  1. Go to Help -> Install New Software…
  2. Enter http://www.apache.org/dist/ant/ivyde/updatesite in the “Work with:” text field
  3. Select and install all items

If you have installed IvyDE via the Eclipse Marketplace previously, make sure that you also have Apache Ivy Ant Targets installed, which is not included in that IvyDE installation:

  1. Go to Help -> Install New Software…
  2. Click the hyperlink in the “What is already installed?” sentence near the bottom right-hand corner
  3. Verify that the list includes Apache Ivy Ant Tasks

If it isn’t included, follow the installation process above, but select only Apache Ivy library > Apache Ivy Ant Tasks

Set up the Workspace and define required variables for projects

  1. Open Window -> Preferences (Windows) or Eclipse -> Preferences (Mac)
  2. Go to General -> Workspace
    1. Set Text file encoding to UTF-8
    2. Set New text file line delimiter to Unix
  3. Go to General -> Workspace -> Linked Resources
  4. Add a new Path Variable GWT_ROOT referring to the gwt folder containing the gwt project GWT_ROOT
  5. Go to Java -> Build Path -> Classpath Variables
  6. 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
  7. Go to Java -> Compiler
    1. Check that the compliance level has been set to 1.6
  8. Go to XML -> XML Files -> Editor
    1. Ensure the settings are follows:
      Line width: 72
      Format comments: true
      Join lines: true
      Insert whitespace before closing empty end-tags: true
      Indent-using spaces: true
      Indentation size: 4
      

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
  4. Click “finish” to complete the import of GWT
  5. Then repeat by doing File -> Import -> General -> Existing Projects into Workspace
  6. Select the workspace folder as root directory
  7. Click “deselect all” and select
    1. vaadin
  8. Click “finish” to complete the import of Vaadin Framework

FinishImportProject

You should now have three projects in your workspace. If the vaadin project does not compile without errors, choose Ivy -> Resolve from the vaadin project popup menu. Now all projects should 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.