Updates to test the S3 Upload functionality
This commit is contained in:
@@ -12,9 +12,13 @@
|
||||
@author Arjen Poutsma
|
||||
=======================================================================
|
||||
-->
|
||||
<project name="build-spring-ldap-continuous" default="snapshot" xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
|
||||
<project name="build-spring-ldap-continuous" default="snapshot" xmlns:ivy="antlib:fr.jayasoft.ivy.ant" xmlns:aws="antlib:org.springframework.aws">
|
||||
|
||||
<import file="${basedir}/build.xml"/>
|
||||
|
||||
<taskdef resource="org/springframework/aws/antlib.xml"
|
||||
uri="antlib:org.springframework.aws"
|
||||
classpathref="ivy.lib.path" />
|
||||
|
||||
<!-- targets for uploading binaries, creating snapshots, et cetera -->
|
||||
<!--
|
||||
@@ -43,7 +47,7 @@
|
||||
tofile="${upload.tmp.dir}/spring-ldap-buildable-${release.version}-${tstamp}-${build.number}.zip"/>
|
||||
</target>
|
||||
|
||||
<target name="upload" depends="upload-binaries"/>
|
||||
<target name="upload" depends="upload-binaries,upload-s3"/>
|
||||
|
||||
<!-- SCP needs an SSH library on the classpath (see Ant documentation for more info) -->
|
||||
<target name="upload-binaries" depends="init, guard.upload.tmp.dir, guard.upload.binaries.dir, guard.upload.url, guard.upload.password, guard.upload.username">
|
||||
@@ -78,5 +82,26 @@
|
||||
<target name="guard.upload.password" unless="upload.password">
|
||||
<fail message="This target requires the upload.password property to be set"/>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="upload-s3" depends="guard.s3.accessKey, guard.s3.secretKey">
|
||||
<aws:s3 accessKey="${s3.accessKey}" secretKey="${s3.secretKey}">
|
||||
<upload bucket="static.springframework.org"
|
||||
file="${target.release.dir}/${release.bin.zip}"
|
||||
toFile="LDAP/spring-ldap-bin-${release.version}-${tstamp}-${build.number}.zip" />
|
||||
<upload bucket="static.springframework.org"
|
||||
file="${target.release.dir}/${release.bin.deps.zip}"
|
||||
toFile="LDAP/spring-ldap-bin-with-dependencies-${release.version}-${tstamp}-${build.number}.zip" />
|
||||
<upload bucket="static.springframework.org"
|
||||
file="${target.release.dir}/${release.buildable.zip}"
|
||||
toFile="SWF/spring-ldap-buildable-${release.version}-${tstamp}-${build.number}.zip" />
|
||||
</aws:s3>
|
||||
</target>
|
||||
|
||||
<target name="guard.s3.accessKey" unless ="s3.accessKey">
|
||||
<fail message="This target requires the s3.accesskey property to be set"/>
|
||||
</target>
|
||||
|
||||
<target name="guard.s3.secretKey" unless ="s3.secretKey">
|
||||
<fail message="This target requires the s3.secretKey property to be set"/>
|
||||
</target>
|
||||
</project>
|
||||
|
||||
BIN
common-build/lib/commons-codec-1.3.jar
Executable file
BIN
common-build/lib/commons-codec-1.3.jar
Executable file
Binary file not shown.
BIN
common-build/lib/commons-httpclient-3.0.1.jar
Executable file
BIN
common-build/lib/commons-httpclient-3.0.1.jar
Executable file
Binary file not shown.
BIN
common-build/lib/commons-logging-1.1.jar
Executable file
BIN
common-build/lib/commons-logging-1.1.jar
Executable file
Binary file not shown.
BIN
common-build/lib/jets3t-0.5.0.jar
Executable file
BIN
common-build/lib/jets3t-0.5.0.jar
Executable file
Binary file not shown.
BIN
common-build/lib/spring-aws-ant-1.0-SNAPSHOT.jar
Normal file
BIN
common-build/lib/spring-aws-ant-1.0-SNAPSHOT.jar
Normal file
Binary file not shown.
BIN
spring-ldap/docs/reference/docbook-reference-libs.zip
Normal file
BIN
spring-ldap/docs/reference/docbook-reference-libs.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user