com.atlassian.confluence.it.maven
Class MavenUploadablePlugin
java.lang.Object
com.atlassian.confluence.it.maven.MavenUploadablePlugin
- All Implemented Interfaces:
- Plugin, UploadablePlugin
public class MavenUploadablePlugin
- extends Object
- implements UploadablePlugin
A plugin to be uploaded into Confluence from the local Maven repository.
MavenUploadablePlugin
public MavenUploadablePlugin(String key,
String displayName,
MavenDependency dependency)
- Parameters:
key
- the plugin keydisplayName
- the full name of the plugin, used to assert that the plugin was uploaded successfullydependency
- the dependency to upload
getKey
public String getKey()
- Description copied from interface:
Plugin
- The plugin key of the plugin.
- Specified by:
getKey
in interface Plugin
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interface Plugin
- Returns:
- the full name of the plugin, used to ensure that the plugin was uploaded successfully
getFile
public File getFile()
- Returns a file representing the plugin in the local repository, using the conventions of a Maven 2 repository.
The file that is returned may or may not exist.
- Specified by:
getFile
in interface UploadablePlugin
- Returns:
- the JAR file of the plugin to upload.
- See Also:
LocalMavenDependency.getFile()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2012 Atlassian. All Rights Reserved.