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.

addons-cval.asciidoc 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. ---
  2. title: Installing Commercial Vaadin Add-on License
  3. order: 5
  4. layout: page
  5. ---
  6. [[addons.cval]]
  7. = Installing Commercial Vaadin Add-on License
  8. The commercial Vaadin add-ons require installing a license key before using
  9. them. The license keys are development licenses and checked during widget set
  10. compilation, or in Vaadin TestBench when executing tests, so you do not need
  11. them when deploying the application.
  12. [[addons.cval.obtaining]]
  13. == Obtaining License Keys
  14. You can purchase add-ons or obtain a free trial key from the Vaadin website. You
  15. need to register in the website to obtain a key.
  16. You can get license keys from link:https://vaadin.com/pro/licenses[vaadin.com/pro/licenses].
  17. . On the Vaadin website, click on your profile in the top right, then select "My Services > Licenses".
  18. +
  19. image::img/cval-pro-licenses-4.png[width=80%, scaledwidth=100%]
  20. . Click on a license key to obtain the purchased or trial key.
  21. +
  22. image::img/cval-pro-licenses-code-2.png[width=80%, scaledwidth=100%]
  23. [[addons.cval.installing]]
  24. == Installing License Key in License File
  25. To install the license key in a development workstation, you can copy and paste
  26. it verbatim to a file in your home directory.
  27. License for each product has a separate license file as follows:
  28. Vaadin Charts:: [filename]#.vaadin.charts.developer.license#
  29. Vaadin Spreadsheet:: [filename]#.vaadin.spreadsheet.developer.license#
  30. Vaadin TestBench:: [filename]#.vaadin.testbench.developer.license#
  31. Vaadin TouchKit:: [filename]#.vaadin.touchkit.developer.license#
  32. For example, in Linux and OS X:
  33. [subs="normal"]
  34. ----
  35. [prompt]#$# [command]#echo# "[replaceable]#L1cen5e-c0de#" > [parameter]#~/.vaadin.[replaceable]+++#+++<product>+++#+++.developer.license#
  36. ----
  37. [[addons.cval.systemproperty]]
  38. == Passing License Key as System Property
  39. You can also pass the key as a system property to the widget set compiler,
  40. usually with a [literal]#++-D++# option. For example, on the command-line:
  41. [subs="normal"]
  42. ----
  43. [prompt]#$# [command]#java# -Dvaadin.[replaceable]##<product>##.developer.license=[replaceable]#L1cen5e-c0de# ...
  44. ----
  45. where the [literal]`<product>` is the product ID, such as `charts`, `spreadsheet`, or `testbench`.
  46. [[addons.cval.systemproperty.environments]]
  47. === Passing License Key in Different Environments
  48. How you actually pass the parameter to the widget set compiler depends on the
  49. development environment and the build system that you use to compile the widget
  50. set. Below are listed a few typical environments:
  51. Eclipse IDE:: To install the license key for all projects, select "Window > Preferences" and
  52. navigate to the "Java > Installed JREs" section. Select the JRE version that you
  53. use for the application and click [guibutton]#Edit#. In the [guilabel]#Default
  54. VM arguments#, give the [parameter]#-D# expression as shown above.
  55. Apache Ant:: If compiling the project with Apache Ant, you could set the key in the Ant script as follows:
  56. +
  57. [subs="normal"]
  58. ----
  59. &lt;sysproperty key="vaadin.[replaceable]#&lt;product&gt;#.developer.license"
  60. value="**L1cen5e-c0de**"/&gt;
  61. ----
  62. +
  63. However, you should never store license keys in a source repository, so if the
  64. Ant script is stored in a source repository, you should pass the license key to
  65. Ant as a property that you then use in the script for the value argument of the
  66. [literal]#++<sysproperty>++# as follows:
  67. +
  68. [subs="normal"]
  69. ----
  70. &lt;sysproperty key="vaadin.[replaceable]#&lt;product&gt;#.developer.license"
  71. value="**${vaadin.[replaceable]#&lt;product&gt;#.developer.license}**"/&gt;
  72. ----
  73. +
  74. When invoking Ant from the command-line, you can pass the property with a
  75. [parameter]#-D# parameter to Ant.
  76. Apache Maven:: If building the project with Apache Maven, you can pass the license key with a [literal]#++-D++# parameter to Maven:
  77. +
  78. [subs="normal"]
  79. ----
  80. [prompt]#$# [command]#mvn# -Dvaadin.[replaceable]##&lt;product&gt;##.developer.license=[replaceable]##L1cen5e-c0de## package
  81. ----
  82. +
  83. where the [literal]`<product>` is the product ID, such as `charts`, `spreadsheet`, or `testbench`.
  84. Continuous Integration Systems:: In CIS systems, you can pass the license key to build runners as a system
  85. property in the build configuration. However, this only passes it to a runner.
  86. As described above, Ant does not pass it to sub-processes implicitly, so you
  87. need to forward it explicitly as described earlier.