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.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. . Select in the Vaadin website "My Account > Licenses" or directly
  18. [menuchoice]#Licenses# if you are a Pro Tools subscriber.
  19. +
  20. image::img/cval-pro-licenses-3.png[width=80%, scaledwidth=100%]
  21. . Click on a license key to obtain the purchased or trial key.
  22. +
  23. image::img/cval-pro-licenses-code.png[width=80%, scaledwidth=100%]
  24. [[addons.cval.installing]]
  25. == Installing License Key in License File
  26. To install the license key in a development workstation, you can copy and paste
  27. it verbatim to a file in your home directory.
  28. License for each product has a separate license file as follows:
  29. Vaadin Charts:: [filename]#.vaadin.charts.developer.license#
  30. Vaadin Spreadsheet:: [filename]#.vaadin.spreadsheet.developer.license#
  31. Vaadin TestBench:: [filename]#.vaadin.testbench.developer.license#
  32. Vaadin TouchKit:: [filename]#.vaadin.touchkit.developer.license#
  33. For example, in Linux and OS X:
  34. [subs="normal"]
  35. ----
  36. [prompt]#$# [command]#echo# "[replaceable]#L1cen5e-c0de#" > [parameter]#~/.vaadin.[replaceable]+++#+++<product>+++#+++.developer.license#
  37. ----
  38. [[addons.cval.systemproperty]]
  39. == Passing License Key as System Property
  40. You can also pass the key as a system property to the widget set compiler,
  41. usually with a [literal]#++-D++# option. For example, on the command-line:
  42. [subs="normal"]
  43. ----
  44. [prompt]#$# [command]#java# -Dvaadin.[replaceable]##<product>##.developer.license=[replaceable]#L1cen5e-c0de# ...
  45. ----
  46. where the [literal]`<product>` is the product ID, such as `charts`, `spreadsheet`, `designer`, or `testbench`.
  47. ifdef::web[]
  48. See link:https://vaadin.com/directory/help/installing-cval-license[the CVAL
  49. license key installation instructions] for more details.
  50. endif::web[]
  51. [[addons.cval.systemproperty.environments]]
  52. === Passing License Key in Different Environments
  53. How you actually pass the parameter to the widget set compiler depends on the
  54. development environment and the build system that you use to compile the widget
  55. set. Below are listed a few typical environments:
  56. Eclipse IDE:: To install the license key for all projects, select "Window > Preferences" and
  57. navigate to the "Java > Installed JREs" section. Select the JRE version that you
  58. use for the application and click [guibutton]#Edit#. In the [guilabel]#Default
  59. VM arguments#, give the [parameter]#-D# expression as shown above.
  60. Apache Ant:: If compiling the project with Apache Ant, you could set the key in the Ant script as follows:
  61. +
  62. [subs="normal"]
  63. ----
  64. &lt;sysproperty key="vaadin.[replaceable]#&lt;product&gt;#.developer.license"
  65. value="**L1cen5e-c0de**"/&gt;
  66. ----
  67. +
  68. However, you should never store license keys in a source repository, so if the
  69. Ant script is stored in a source repository, you should pass the license key to
  70. Ant as a property that you then use in the script for the value argument of the
  71. [literal]#++<sysproperty>++# as follows:
  72. +
  73. [subs="normal"]
  74. ----
  75. &lt;sysproperty key="vaadin.[replaceable]#&lt;product&gt;#.developer.license"
  76. value="**${vaadin.[replaceable]#&lt;product&gt;#.developer.license}**"/&gt;
  77. ----
  78. +
  79. When invoking Ant from the command-line, you can pass the property with a
  80. [parameter]#-D# parameter to Ant.
  81. Apache Maven:: If building the project with Apache Maven, you can pass the license key with a [literal]#++-D++# parameter to Maven:
  82. +
  83. [subs="normal"]
  84. ----
  85. [prompt]#$# [command]#mvn# -Dvaadin.[replaceable]##&lt;product&gt;##.developer.license=[replaceable]##L1cen5e-c0de## package
  86. ----
  87. +
  88. where the [literal]`<product>` is the product ID, such as `charts`, `spreadsheet`, `designer`, or `testbench`.
  89. Continuous Integration Systems:: In CIS systems, you can pass the license key to build runners as a system
  90. property in the build configuration. However, this only passes it to a runner.
  91. As described above, Ant does not pass it to sub-processes implicitly, so you
  92. need to forward it explicitly as described earlier.