public class UploadablePluginBuilder extends Object
Constructor and Description |
---|
UploadablePluginBuilder(String pluginKey,
String pluginName) |
public UploadablePluginBuilder addFormattedJava(String className, String... lines)
public UploadablePluginBuilder addJavaClass(Class<?> clazz) throws IOException
clazz
- the class to addIOException
- if the classfile for the given class (or any of its nested classes) cannot be readpublic UploadablePluginBuilder addJava(String className, String code)
public UploadablePluginBuilder addClass(Class clazz) throws IOException
clazz
- the class identifying the class file to addIOException
public UploadablePluginBuilder manifest(Map<String,String> manifest)
public UploadablePluginBuilder addClasspathResource(String resourcePath, String classPath)
public UploadablePluginBuilder addResource(String path, String contents)
public UploadablePluginBuilder addFormattedResource(String path, String... lines)
public UploadablePluginBuilder addPluginInformation(String key, String name, String version)
public UploadablePluginBuilder addPluginInformation(String key, String name, String version, int pluginsVersion)
public UploadablePluginBuilder addPluginInformation(String key, String name, String version, int pluginsVersion, Map<String,String> params)
public UploadablePluginBuilder addFile(String path, File file) throws IOException
IOException
public UploadablePlugin buildUploadablePlugin()
Copyright © 2003–2015 Atlassian. All rights reserved.