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

https://bitbucket.org/mmeinhold/amps · #! · 104 lines · 102 code · 2 blank · 0 comment · 0 complexity · d7aa14d0fb2c8e4121e39acc3077d8c0 MD5 · raw file

  1. #set( $mvnCommand = "com.atlassian.maven.plugins:maven-amps-dispatcher-plugin:$version:debug" )
  2. #set( $goalhelp = "Runs the product in debug mode with your plugin installed." )
  3. #set( $opts = [{
  4. 'name' : 'version',
  5. 'short' : 'v',
  6. 'maven' : 'product.version',
  7. 'description' : 'Version of the product to run (default is RELEASE).',
  8. 'example' : '1.0'
  9. },{
  10. 'name' : 'container',
  11. 'short' : 'c',
  12. 'maven' : 'container',
  13. 'description' : 'Container to run in (default is tomcat6x).',
  14. 'example' : 'tomcat6x'
  15. },{
  16. 'name' : 'http-port',
  17. 'short' : 'p',
  18. 'maven' : 'http.port',
  19. 'description' : 'HTTP port for the servlet container.',
  20. 'example' : '8080'
  21. },{
  22. 'name' : 'context-path',
  23. 'maven' : 'context.path',
  24. 'description' : 'Application context path (include the leading forward slash).',
  25. 'example' : '/myapp'
  26. },{
  27. 'name' : 'server',
  28. 'maven' : 'server',
  29. 'description' : 'Host name of the application server (default is localhost).',
  30. 'example' : 'localhost'
  31. },{
  32. 'name' : 'jvmargs',
  33. 'maven' : 'jvmargs',
  34. 'description' : 'Additional JVM arguments if required.',
  35. 'example' : '-Xmx=512m'
  36. },{
  37. 'name' : 'log4j',
  38. 'maven' : 'log4jproperties',
  39. 'description' : 'Log4j properties file.',
  40. 'example' : 'test/log4j.properties'
  41. },{
  42. 'name' : 'test-version',
  43. 'maven' : 'test.resources.version',
  44. 'description' : 'Version to use for test resources. DEPRECATED: use data-version instead.',
  45. 'example' : 'LATEST'
  46. },{
  47. 'name' : 'data-version',
  48. 'maven' : 'product.data.version',
  49. 'description' : 'Version to use for data resources (default is RELEASE)',
  50. 'example' : 'RELEASE'
  51. },{
  52. 'name' : 'sal-version',
  53. 'maven' : 'sal.version',
  54. 'description' : 'Version of SAL to use.',
  55. 'example' : '2.0.11'
  56. },{
  57. 'name' : 'rest-version',
  58. 'maven' : 'rest.version',
  59. 'description' : 'Version of the Atlassian REST module to use.',
  60. 'example' : '1.0'
  61. },{
  62. 'name' : 'plugins',
  63. 'maven' : 'plugins',
  64. 'description' : 'Comma-delimited list of plugin artifacts in GROUP_ID:ARTIFACT_ID:VERSION form, where version can be ommitted, defaulting to LATEST.',
  65. 'example' : 'groupId:artifactId::version'
  66. },{
  67. 'name' : 'lib-plugins',
  68. 'maven' : 'lib.plugins',
  69. 'description' : 'Comma-delimited list of lib artifacts in GROUP_ID:ARTIFACT_ID:VERSION form, where version can be ommitted, defaulting to LATEST.',
  70. 'example' : 'groupId:artifactId:verion'
  71. },{
  72. 'name' : 'bundled-plugins',
  73. 'maven' : 'bundled.plugins',
  74. 'description' : 'Comma-delimited list of bundled plugin artifacts in GROUP_ID:ARTIFACT_ID:VERSION form, where version can be ommitted, defaulting to LATEST.',
  75. 'example' : 'groupId:artifactId:version'
  76. },{
  77. 'name' : 'product',
  78. 'maven' : 'product',
  79. 'description' : 'The product to launch with the plugin.',
  80. 'example' : 'jira'
  81. },{
  82. 'name' : 'instanceId',
  83. 'maven' : 'instanceId',
  84. 'description' : 'The product instance to launch with the plugin.',
  85. 'example' : 'confluence-3.5.0'
  86. },{
  87. 'name' : 'testGroup',
  88. 'maven' : 'testGroup',
  89. 'description' : 'Test group whose products will be launched with the plugin.',
  90. 'example' : 'confluenceTests'
  91. },{
  92. 'name' : 'jvm-debug-port',
  93. 'maven' : 'jvm.debug.port',
  94. 'description' : 'Port open to accept connections for remote debugging (default is 5005).',
  95. 'example' : '5005'
  96. },{
  97. 'name' : 'jvm-debug-suspend',
  98. 'maven' : 'jvm.debug.suspend=true',
  99. 'flag' : 'true',
  100. 'description' : 'Suspend JVM until debugger connects.',
  101. 'example' : 'true'
  102. }] )