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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Vaadin
  2. ======
  3. *[Vaadin](https://vaadin.com) is a Java framework for building modern web applications that look great, perform well and make you and your users happy.*
  4. For instructions about _using_ Vaadin to develop applications, please refer to
  5. https://vaadin.com/learn
  6. To contribute, first refer to [Contributing Code](https://vaadin.com/wiki/-/wiki/Main/Contributing+Code)
  7. for general instructions and requirements for contributing code to the Vaadin framework.
  8. Instructions on how to set up a working environments for developing the Vaadin
  9. framework follow below.
  10. Eclipse Quick Setup
  11. ======
  12. 1. Run
  13. <code>git clone https://github.com/vaadin/vaadin.git</code>
  14. command or clone the repository your favorite Git tool.
  15. If using Windows, you might want to add these Git settings: `core.autocrlf=false` and `core.fileMode=false`.
  16. 1. Run <code>mvn install</code> in the project root.
  17. Note that the first compilation takes a while to finish as maven downloads dependencies used in the projects.
  18. 1. 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.
  19. 1. Import the project into Eclipse as a maven project. Use *File* -> *Import* -> *Maven* -> *Existing Maven Projects*.
  20. 1. Select the *vaadin* folder (where you cloned the project)
  21. 1. Click “Finish” to complete the import of Vaadin Framework
  22. Now the project should compile without further configuration.
  23. Compiling the Default Widget Set and Themes
  24. --------
  25. * Compile the default widgetset by running <code>install</code> maven goal in `vaadin-client-compiled` module root.
  26. In Eclipse this is done by right clicking on vaadin-client-compiled project it and choosing *Run As* -> *Maven Build...*.
  27. * Compile the default themes by running <code>install</code> maven goal in `vaadin-themes` module root.
  28. In Eclipse this is done by right clicking on vaadin-themes project it and choosing *Run As* -> *Maven Build...*.
  29. Set up extra workspace preferences
  30. --------
  31. 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.
  32. 1. Open *Window* -> *Preferences* (Windows) or *Eclipse* -> *Preferences* (Mac)
  33. 1. Go to *General* -> *Workspace*
  34. 1. Set *Text file encoding* to *UTF-8*
  35. 1. Set *New text file line delimiter* to *Unix*
  36. 1. Go to XML -> XML Files -> Editor
  37. 1. Ensure the settings are follows:
  38. <pre><code>Line width: 72
  39. Format comments: true
  40. Join lines: true
  41. Insert whitespace before closing empty end-tags: true
  42. Indent-using spaces: true
  43. Indentation size: 4
  44. </code></pre>
  45. Running a UI test
  46. ------
  47. 1. In a Project Explorer right-click *vaadin-uitest*
  48. 1. Open *Run As* -> *Maven build...*
  49. 1. Type in <code>jetty:run-exploded</code> into *Goals* and click *Run*
  50. 1. Open URL *http://localhost:8080/run/<testUI>*
  51. Building a package
  52. =====
  53. The distribution files can be built by running maven goal
  54. <pre><code>maven clean install</code></pre>
  55. in the project root directory.
  56. To use a specific version number, modify <code>&lt;version&gt;</code> tag in root pom.xml file.
  57. This goal runs all project tests TestBench tests, which require access to a a TestBench cluster, currently only available internally at Vaadin Ltd.
  58. Setting up IntelliJ IDEA to Develop Vaadin 7
  59. =========
  60. 1. Intall and run IDEA. Ultimate Edition is better but Community Edition should also work.
  61. 1. Ensure if Git and Maven plugins are installed, properly configured and enabled.
  62. 1. Clone the repository, using menu VCS -> Checkout from Version Control -> Git -> Git Repository URL -> https://github.com/vaadin/vaadin.git.
  63. When the repository is cloned, do **NOT** open it as a project.
  64. 1. Open cloned repository as a maven object. Use File -> Open and choose root _pom.xml_ file
  65. 1. Have a coffee break while IDEA is loading dependencies and indexing the project
  66. 1. Run Maven targets <code>clean</code> and <code>install</code> using *Maven Projects* tool window to compile the whole project
  67. Running a UI test
  68. ------
  69. 1. Open *Maven Projects*
  70. 1. Open *vaadin-uitest* -> *Plugins* -> *jetty* -> *jetty:run-exploded*
  71. 1. Open URL *http://localhost:8080/run/<testUI>*