You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Manolo Carrasco 1bd717cf66 Use div instead of notice to avoid UI removing it (#14597) преди 9 години
.settings Disable automatic removal of trailing whitespace and reformatted using Luna преди 9 години
WebContent Fix Valo DateField rendering in read-only FieldGroups (#14603) преди 9 години
all Remove theme-compiler and replace with external vaadin-sass-compiler преди 10 години
build Add a new variation for Valo преди 9 години
buildhelpers Fetch prerelease tickets for rc and final releases (#14552) преди 9 години
checkstyle Ignore irrelevant header lines in checkstyle configuration преди 10 години
client Use div instead of notice to avoid UI removing it (#14597) преди 9 години
client-compiled Disable closure compiler (#13778) преди 10 години
client-compiler URI to cval file was wrong in Windows (#14629) преди 9 години
eclipse Dev mode launch based on Super Dev Mode launch (#14443) преди 9 години
gwt Use GWT as maven dependency (#13616) преди 10 години
liferay Added dummy checkstyle and test targets to liferay module преди 10 години
push Update to Atmosphere 2.1.2.vaadin5 (#13877) преди 9 години
scripts Script for replacing all empty @since tags with a given version преди 9 години
server Improve proxy comparison support (#14639) преди 9 години
shared calendar visible hours shows invalid dates(week/day view) (#12521) преди 9 години
tests/testbench/com/vaadin/tests/components Update copyright year to 2014 преди 10 години
themes Fix themes build script not to overwrite all theme files on every iteration. (#14575) преди 9 години
uitest TextFields inside Drag and Drop Wrappers cannot get focus (#12838) преди 9 години
.classpath Fix super dev mode launch (#14443) преди 9 години
.gitignore Ignore compiled valo test themes преди 9 години
.project Removed Javascript buider and nature to avoid Eclipse choking on validating widgetset files (#9998) преди 11 години
README.md Update readme to mention Git settings for Windows users. преди 9 години
build.properties Use sass-compiler 0.9.10 (#14524) преди 9 години
build.xml Extracted integration-test target. преди 10 години
common.xml List authors in release notes (#13612) преди 10 години
gwt-files.xml Use GWT as maven dependency (#13616) преди 10 години
ivy-taskdefs.xml Formatted XML files using defined rules (#11956) преди 11 години
ivysettings-publish.xml Unified xml files to end with new line преди 10 години
ivysettings.xml Remove theme-compiler and replace with external vaadin-sass-compiler преди 10 години
pom-template.xml Unified xml files to end with new line преди 10 години
publish.properties Publish to SFTP (#9299) преди 11 години
publish.xml Merge branch '7.1' into testbench4 преди 10 години

README.md

Vaadin

Vaadin is a Java framework for building modern web applications that look great, perform well and make you and your users happy.

For instructions about using Vaadin to develop applications, please refer to https://vaadin.com/learn

To contribute, first refer to https://vaadin.com/wiki/-/wiki/Main/Contributing+Code for general instructions and requirements for contributing code to the Vaadin framework.

Instructions on how to set up a working environment for developing the Vaadin framework follow below.

Quick Setup

  1. git clone https://github.com/vaadin/vaadin.git
  2. Install IvyDE, including Ant Tasks, if needed (http://www.apache.org/dist/ant/ivyde/updatesite)
  3. Import the project into Eclipse
  4. Run build/ide.xml in Eclipse

For more details, see below

Cloning the project repositories

The Vaadin repository can be cloned using

git clone https://github.com/vaadin/vaadin.git

or using your favorite Git tool.

If using Windows, you might want to add these Git settings: core.autocrlf=false and core.fileMode=false.

Setting up Eclipse to Develop Vaadin 7

Start Eclipse

Start Eclipse with the workspace you would like to use. It is usually a good idea to use the parent folder of the Git repository as the workspace folder.

Install IvyDE

You’ll need the Apache Ivy plug-in for Eclipse to build the project:

  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 Tasks 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
  4. If it isn’t included, follow the installation process above, but select only Apache Ivy library > Apache Ivy Ant Tasks

Import the Project into the Workspace

  1. Do File -> Import -> General -> Existing Projects into Workspace ImportProject
  2. Select the vaadin folder (where you cloned the project)
  3. Ensure the vaadin project is checked
  4. Click “finish” to complete the import of Vaadin Framework

The project should compile without further configuration. If the project does not compile without errors, choose Ivy -> Resolve from the vaadin project popup menu to ensure all dependencies have been resolved.

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

Set up extra workspace preferences

The following preferences need to be set to keep the project consistent. You need to do this especially to be able to contribute changes to the project.

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

Running a UI test

The vaadin project includes an embedded Jetty (com.vaadin.launcher.DevelopmentServerLauncher) which is used for running the UI tests. In Eclipse you can launch it using the included launch configuration: Right click on *eclipse/Development Server (vaadin).launch” and select Debug As -> Development Server (vaadin).

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 (Use ?restartApplication to ensure the correct UI is shown).

Running JUnit tests

The unit tests for the projects can be run using

ant test

Note that the included Vaadin TestBench (browser) tests require access to a TestBench cluster, currently only available internally at Vaadin Ltd.

Building a package

The distribution files can be built in two steps.

  1. Unpack required gwt jars into the project
    ant -f gwt-files.xml unpack.gwt
  2. Build the project by running
    ant
    in the project root directory (add -Dvaadin.version=1.2.3 to use a specific version number).