1 package com.atlassian.maven.plugins.amps.codegen.prompter.common;
2
3 import com.atlassian.maven.plugins.amps.codegen.annotations.ModuleCreatorClass;
4 import com.atlassian.plugins.codegen.modules.PluginModuleLocation;
5 import com.atlassian.plugins.codegen.modules.common.DownloadablePluginResourceModuleCreator;
6 import com.atlassian.plugins.codegen.modules.common.DownloadablePluginResourceProperties;
7
8 import org.codehaus.plexus.components.interactivity.Prompter;
9 import org.codehaus.plexus.components.interactivity.PrompterException;
10
11
12
13
14 @ModuleCreatorClass(DownloadablePluginResourceModuleCreator.class)
15 public class DownloadablePluginResourcePrompter extends AbstractResourcePrompter<DownloadablePluginResourceProperties>
16 {
17
18 public DownloadablePluginResourcePrompter(Prompter prompter)
19 {
20 super(prompter);
21
22 }
23
24 @Override
25 public DownloadablePluginResourceProperties promptForBasicProperties(PluginModuleLocation moduleLocation) throws PrompterException
26 {
27 suppressAdvancedPrompt();
28 return new DownloadablePluginResourceProperties(promptForResource());
29 }
30
31 @Override
32 public void promptForAdvancedProperties(DownloadablePluginResourceProperties props, PluginModuleLocation moduleLocation) throws PrompterException
33 {
34
35 }
36 }