/atlassian-plugin-sdk/src/main/velocity/commands/clover

https://bitbucket.org/mmeinhold/amps · #! · 99 lines · 94 code · 5 blank · 0 comment · 0 complexity · b6c562c8427f7789c4af514eb5affc39 MD5 · raw file

  1. #set( $cloverPrefix = "com.atlassian.maven.plugins:maven-clover2-plugin:${cloverVersion}" )
  2. #set( $mvnCommand = "-Djava.awt.headless=true ${cloverPrefix}:setup verify ${cloverPrefix}:clover ${cloverPrefix}:log" )
  3. #set( $goalhelp = "Runs Clover and reports on code coverage for this plugin. For colored output, set the MAVEN_COLOR environment variable to true. (runs mvn $mvnCommand)." )
  4. #set( $opts = [{
  5. 'name' : 'version',
  6. 'short' : 'v',
  7. 'maven' : 'product.version',
  8. 'description' : 'Version of the product to run (default is RELEASE).',
  9. 'example' : '1.0'
  10. },{
  11. 'name' : 'container',
  12. 'short' : 'c',
  13. 'maven' : 'container',
  14. 'description' : 'Container to run in (default is tomcat6x).',
  15. 'example' : 'tomcat6x'
  16. },{
  17. 'name' : 'http-port',
  18. 'short' : 'p',
  19. 'maven' : 'http.port',
  20. 'description' : 'HTTP port for the servlet container.',
  21. 'example' : '8080'
  22. },{
  23. 'name' : 'context-path',
  24. 'maven' : 'context.path',
  25. 'description' : 'Application context path (include the leading forward slash).',
  26. 'example' : '/myapp'
  27. },{
  28. 'name' : 'server',
  29. 'maven' : 'server',
  30. 'description' : 'Host name of the application server (default is localhost).',
  31. 'example' : 'localhost'
  32. },{
  33. 'name' : 'jvmargs',
  34. 'maven' : 'jvmargs',
  35. 'description' : 'Additional JVM arguments if required.',
  36. 'example' : '-Xmx=512m'
  37. },{
  38. 'name' : 'log4j',
  39. 'maven' : 'log4jproperties',
  40. 'description' : 'Log4j properties file.',
  41. 'example' : 'test/log4j.properties'
  42. },{
  43. 'name' : 'test-version',
  44. 'maven' : 'test.resources.version',
  45. 'description' : 'Version to use for test resources. DEPRECATED: use data-version instead.',
  46. 'example' : 'LATEST'
  47. },{
  48. 'name' : 'data-version',
  49. 'maven' : 'product.data.version',
  50. 'description' : 'Version to use for data resources (default is LATEST)',
  51. 'example' : 'RELEASE'
  52. },{
  53. 'name' : 'sal-version',
  54. 'maven' : 'sal.version',
  55. 'description' : 'Version of SAL to use.',
  56. 'example' : '2.0.11'
  57. },{
  58. 'name' : 'rest-version',
  59. 'maven' : 'rest.version',
  60. 'description' : 'Version of the Atlassian REST module to use.',
  61. 'example' : '1.0'
  62. },{
  63. 'name' : 'plugins',
  64. 'maven' : 'plugins',
  65. 'description' : 'Comma-delimited list of plugin artifacts in GROUP_ID:ARTIFACT_ID:VERSION form, where version can be ommitted, defaulting to LATEST.',
  66. 'example' : 'groupId:artifactId::version'
  67. },{
  68. 'name' : 'lib-plugins',
  69. 'maven' : 'lib.plugins',
  70. 'description' : 'Comma-delimited list of lib artifacts in GROUP_ID:ARTIFACT_ID:VERSION form, where version can be ommitted, defaulting to LATEST.',
  71. 'example' : 'groupId:artifactId:verion'
  72. },{
  73. 'name' : 'bundled-plugins',
  74. 'maven' : 'bundled.plugins',
  75. 'description' : 'Comma-delimited list of bundled plugin artifacts in GROUP_ID:ARTIFACT_ID:VERSION form, where version can be ommitted, defaulting to LATEST.',
  76. 'example' : 'groupId:artifactId:version'
  77. },{
  78. 'name' : 'product',
  79. 'maven' : 'product',
  80. 'description' : 'The product to launch with the plugin.',
  81. 'example' : 'jira'
  82. },{
  83. 'name' : 'no-webapp',
  84. 'maven' : 'no.webapp=true',
  85. 'flag' : 'true',
  86. 'description' : 'Do not start the application.',
  87. 'example' : 'true'
  88. },{
  89. 'name' : 'skip-tests',
  90. 'maven' : 'skipTests=true',
  91. 'flag' : 'true',
  92. 'description' : 'Skip the tests.',
  93. 'example' : 'true'
  94. }] )