Class UploadablePluginBuilder
- java.lang.Object
-
- com.atlassian.confluence.it.plugin.UploadablePluginBuilder
-
@Deprecated public class UploadablePluginBuilder extends Object
Deprecated.Please use confluence-test-utils module instead. See {com.atlassian.confluence.test.plugin.UploadablePluginBuilder} alternative
-
-
Constructor Summary
Constructors Constructor Description UploadablePluginBuilder(String pluginKey, String pluginName)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UploadablePluginBuilder
addClass(Class clazz)
Deprecated.Helper method to add the .class file for the given classUploadablePluginBuilder
addClasspathResource(String resourcePath, String classPath)
Deprecated.UploadablePluginBuilder
addFile(String path, File file)
Deprecated.UploadablePluginBuilder
addFormattedJava(String className, String... lines)
Deprecated.UploadablePluginBuilder
addFormattedResource(String path, String... lines)
Deprecated.UploadablePluginBuilder
addJava(String className, String code)
Deprecated.UploadablePluginBuilder
addJavaClass(Class<?> clazz)
Deprecated.Adds the given class, and all its nested classes, including anonymous ones (assuming they follow the $n naming convention).UploadablePluginBuilder
addPluginInformation(String key, String name, String version)
Deprecated.UploadablePluginBuilder
addPluginInformation(String key, String name, String version, int pluginsVersion)
Deprecated.UploadablePluginBuilder
addPluginInformation(String key, String name, String version, int pluginsVersion, Map<String,String> params)
Deprecated.UploadablePluginBuilder
addResource(String path, String contents)
Deprecated.UploadablePlugin
buildUploadablePlugin()
Deprecated.WARNING: UploadablePlugin may not be completely filled.UploadablePluginBuilder
manifest(Map<String,String> manifest)
Deprecated.
-
-
-
Method Detail
-
addFormattedJava
public UploadablePluginBuilder addFormattedJava(String className, String... lines)
Deprecated.
-
addJavaClass
public UploadablePluginBuilder addJavaClass(Class<?> clazz) throws IOException
Deprecated.Adds the given class, and all its nested classes, including anonymous ones (assuming they follow the $n naming convention).- Parameters:
clazz
- the class to add- Returns:
- this builder
- Throws:
IOException
- if the classfile for the given class (or any of its nested classes) cannot be read
-
addJava
public UploadablePluginBuilder addJava(String className, String code)
Deprecated.
-
addClass
public UploadablePluginBuilder addClass(Class clazz) throws IOException
Deprecated.Helper method to add the .class file for the given class- Parameters:
clazz
- the class identifying the class file to add- Returns:
- this
- Throws:
IOException
-
manifest
public UploadablePluginBuilder manifest(Map<String,String> manifest)
Deprecated.
-
addClasspathResource
public UploadablePluginBuilder addClasspathResource(String resourcePath, String classPath)
Deprecated.
-
addResource
public UploadablePluginBuilder addResource(String path, String contents)
Deprecated.
-
addFormattedResource
public UploadablePluginBuilder addFormattedResource(String path, String... lines)
Deprecated.
-
addPluginInformation
public UploadablePluginBuilder addPluginInformation(String key, String name, String version)
Deprecated.
-
addPluginInformation
public UploadablePluginBuilder addPluginInformation(String key, String name, String version, int pluginsVersion)
Deprecated.
-
addPluginInformation
public UploadablePluginBuilder addPluginInformation(String key, String name, String version, int pluginsVersion, Map<String,String> params)
Deprecated.
-
addFile
public UploadablePluginBuilder addFile(String path, File file) throws IOException
Deprecated.- Throws:
IOException
-
buildUploadablePlugin
public UploadablePlugin buildUploadablePlugin()
Deprecated.WARNING: UploadablePlugin may not be completely filled. TODO - retrieve the pluginKey from the formatted resource or at least allow the key and name to be set independently of the resource.
-
-