|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riedelcastro.UploadDescriptor
public class UploadDescriptor
An UploadDescriptor describes an upload to be performed by the gcupload goal. It implements maven's convention over configuration paradigm by automatically deducing default values for properties based on the project properties.
Constructor Summary | |
---|---|
UploadDescriptor(org.apache.maven.project.MavenProject project)
Creates a new default upload descriptor for the given maven project. |
|
UploadDescriptor(org.apache.maven.project.MavenProject project,
java.util.Map properties)
Creates a new upload descriptor using the given property map and maven project for extracting properties of the upload. |
Method Summary | |
---|---|
java.lang.String[] |
getExtensions()
Returns the list of filename extensions. |
java.io.File[] |
getFilesToUpload()
Returns the files to upload. |
java.lang.String |
getId()
Returns the id of this upload to be used in info messages. |
java.lang.String |
getPostfix()
Returns the postfix that the target files have appended to their prefix. |
java.lang.String |
getPrefix()
Returns the prefix of the target filenames. |
java.lang.String |
getSummary()
Returns the summary of this upload to be added to the file in google code. |
java.lang.String[] |
getTargetFileNames()
Return the array of target filenames as defined by the prefix, postfix and extensions. |
void |
setExtensions(java.lang.String[] extensions)
Sets the extensions of this upload. |
void |
setLabels(java.lang.String[] labels)
Set upload labels. |
void |
setPostfix(java.lang.String postfix)
Sets the upload postfix. |
void |
setPrefix(java.lang.String prefix)
Sets the upload prefix. |
void |
setSummary(java.lang.String summary)
Sets the upload summary. |
java.lang.String |
toString()
Returns a string representation of this upload descriptor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UploadDescriptor(org.apache.maven.project.MavenProject project)
project
- the maven project to extract default values from.public UploadDescriptor(org.apache.maven.project.MavenProject project, java.util.Map properties)
project
- the maven project.properties
- a map with properties for the upload.Method Detail |
---|
public java.lang.String getId()
public java.io.File[] getFilesToUpload()
public java.lang.String[] getExtensions()
public java.lang.String getPostfix()
public java.lang.String getPrefix()
public java.lang.String[] getTargetFileNames()
public java.lang.String getSummary()
public void setExtensions(java.lang.String[] extensions)
extensions
- the extensions of this upload.public void setLabels(java.lang.String[] labels)
labels
- labels to attach to uploads.public void setPostfix(java.lang.String postfix)
postfix
- upload postfix.public void setSummary(java.lang.String summary)
summary
- the summary for the upload.public void setPrefix(java.lang.String prefix)
prefix
- the filename prefix for this upload.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |