com.atlassian.confluence.it.maven
Class MavenUploadablePlugin

java.lang.Object
  extended by 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.


Field Summary
 
Fields inherited from interface com.atlassian.confluence.it.plugin.Plugin
PLUGIN_DESCRIPTOR_FILENAME
 
Constructor Summary
MavenUploadablePlugin(String key, String displayName, MavenDependency dependency)
           
 
Method Summary
 String getDisplayName()
           
 File getFile()
          Returns a file representing the plugin in the local repository, using the conventions of a Maven 2 repository.
 String getKey()
          The plugin key of the plugin.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MavenUploadablePlugin

public MavenUploadablePlugin(String key,
                             String displayName,
                             MavenDependency dependency)
Parameters:
key - the plugin key
displayName - the full name of the plugin, used to assert that the plugin was uploaded successfully
dependency - the dependency to upload
Method Detail

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-2013 Atlassian. All Rights Reserved.