1 package com.atlassian.plugins.codegen.modules.common;
2
3 import com.atlassian.plugins.codegen.annotations.*;
4 import com.atlassian.plugins.codegen.modules.AbstractPluginModuleCreator;
5 import com.atlassian.plugins.codegen.modules.PluginModuleLocation;
6
7
8
9
10 @RefAppPluginModuleCreator
11 @JiraPluginModuleCreator
12 @ConfluencePluginModuleCreator
13 @BambooPluginModuleCreator
14 @CrowdPluginModuleCreator
15 @FeCruPluginModuleCreator
16 @Dependencies({
17 @Dependency(groupId = "org.mockito", artifactId = "mockito-all", version = "1.8.5", scope = "test")
18 })
19 public class DownloadablePluginResourceModuleCreator extends AbstractPluginModuleCreator<DownloadablePluginResourceProperties>
20 {
21
22 public static final String MODULE_NAME = "Downloadable Plugin Resource";
23 private static final String TEMPLATE_PREFIX = "templates/common/";
24 private static final String PLUGIN_MODULE_TEMPLATE = TEMPLATE_PREFIX + "resource-plugin.xml.vtl";
25
26 @Override
27 public void createModule(PluginModuleLocation location, DownloadablePluginResourceProperties props) throws Exception
28 {
29 addModuleToPluginXml(PLUGIN_MODULE_TEMPLATE, location, props);
30 }
31
32
33 @Override
34 public String getModuleName()
35 {
36 return MODULE_NAME;
37 }
38 }