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 UploadablePluginBuilderaddClass(Class clazz)Deprecated.Helper method to add the .class file for the given classUploadablePluginBuilderaddClasspathResource(String resourcePath, String classPath)Deprecated.UploadablePluginBuilderaddFile(String path, File file)Deprecated.UploadablePluginBuilderaddFormattedJava(String className, String... lines)Deprecated.UploadablePluginBuilderaddFormattedResource(String path, String... lines)Deprecated.UploadablePluginBuilderaddJava(String className, String code)Deprecated.UploadablePluginBuilderaddJavaClass(Class<?> clazz)Deprecated.Adds the given class, and all its nested classes, including anonymous ones (assuming they follow the $n naming convention).UploadablePluginBuilderaddPluginInformation(String key, String name, String version)Deprecated.UploadablePluginBuilderaddPluginInformation(String key, String name, String version, int pluginsVersion)Deprecated.UploadablePluginBuilderaddPluginInformation(String key, String name, String version, int pluginsVersion, Map<String,String> params)Deprecated.UploadablePluginBuilderaddResource(String path, String contents)Deprecated.UploadablePluginbuildUploadablePlugin()Deprecated.WARNING: UploadablePlugin may not be completely filled.UploadablePluginBuildermanifest(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.
-
-