|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.springframework.build.aws.ant.SimpleStorageService
public class SimpleStorageService
An ANT task for dealing with the Amazon S3 service. Requires properties to be
set for an accessKey and a secretKey. S3 operations
are listed as elements contained in the s3 tag.
<aws:s3 accessKey="${s3.accessKey}" secretKey="${s3.secretKey}">
<upload bucketName="static.springframework.org"
file="${target.release.dir}/${release-with-dependencies.zip}"
toFile="SPR/spring-framework-${spring-version}-with-dependencies-${tstamp}-${build.number}.zip"
publicRead="true"/>
<upload bucketName="static.springframework.org"
file="${target.release.dir}/${release.zip}"
toFile="SPR/spring-framework-${spring-version}-${tstamp}-${build.number}.zip"
publicRead="true"/>
</aws:s3>
| Field Summary | |
|---|---|
private java.lang.String |
accessKey
|
private java.util.List<S3Operation> |
operations
|
private java.lang.String |
secretKey
|
| Constructor Summary | |
|---|---|
SimpleStorageService()
|
|
| Method Summary | |
|---|---|
void |
addConfiguredDelete(Delete delete)
Add any delete operations |
void |
addConfiguredDownload(Download download)
Add any download operations |
void |
addConfiguredDownloadLatest(DownloadLatest downloadLatest)
Add any downloadLatest operations |
void |
addConfiguredUpload(Upload upload)
Add any upload operations |
void |
execute()
Run all S3 operations configured as part of this task |
void |
setAccessKey(java.lang.String accessKey)
Required parameter that corresponds to the S3 Access Key |
void |
setSecretKey(java.lang.String secretKey)
Required parameter that corresponds to the S3 Secret Key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String accessKey
private java.lang.String secretKey
private java.util.List<S3Operation> operations
| Constructor Detail |
|---|
public SimpleStorageService()
| Method Detail |
|---|
public void setAccessKey(java.lang.String accessKey)
accessKey - The S3 Access Keypublic void setSecretKey(java.lang.String secretKey)
secretKey - The S3 Secret Keypublic void addConfiguredUpload(Upload upload)
upload - The upload operation metadatapublic void addConfiguredDownload(Download download)
download - The download operation metadatapublic void addConfiguredDownloadLatest(DownloadLatest downloadLatest)
download - The downloadLatest operation metadatapublic void addConfiguredDelete(Delete delete)
delete - The delete operation metadatapublic void execute()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||