65 lines
2.7 KiB
XML
65 lines
2.7 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
=======================================================================
|
|
Build file containing targets for continuously integrating build
|
|
Targets are put in a separate build file to prevent users from
|
|
having to put in an SSH library in ANT_HOME/lib
|
|
|
|
This build requires an SSH client to be put in ANT_HOME/lib. Refer
|
|
to Ant's SCP documentation for more information.
|
|
|
|
@author Alef Arendsen
|
|
@author Arjen Poutsma
|
|
=======================================================================
|
|
-->
|
|
<project name="build-spring-ldap-continuous" default="snapshot" xmlns:ivy="antlib:fr.jayasoft.ivy.ant" xmlns:aws="antlib:org.springframework.aws">
|
|
|
|
<property file="build.properties" />
|
|
<property file="project.properties" />
|
|
<property file="${common.build.dir}/build.properties" />
|
|
<property file="${common.build.dir}/project.properties" />
|
|
<property file="${user.home}/build.properties" />
|
|
|
|
<import file="${basedir}/build.xml"/>
|
|
<import file="${common.build.dir}/common-targets.xml" />
|
|
|
|
<!-- targets for uploading binaries, creating snapshots, et cetera -->
|
|
<target name="upload" depends="upload-s3"/>
|
|
|
|
<target name="upload-s3" depends="s3.tasks, guard.s3.accessKey, guard.s3.secretKey">
|
|
<tstamp>
|
|
<format property="tstamp" pattern="yyyyMMdd"/>
|
|
</tstamp>
|
|
<aws:s3 accessKey="${s3.accessKey}" secretKey="${s3.secretKey}">
|
|
<upload bucketName="dist.springframework.org"
|
|
file="${target.release.dir}/${release.bin.zip}"
|
|
toFile="snapshot/LDAP/spring-ldap-bin-${release.version}-${tstamp}-${build.number}.zip"
|
|
publicRead="true"/>
|
|
<upload bucketName="dist.springframework.org"
|
|
file="${target.release.dir}/${release.bin.deps.zip}"
|
|
toFile="snapshot/LDAP/spring-ldap-bin-with-dependencies-${release.version}-${tstamp}-${build.number}.zip"
|
|
publicRead="true"/>
|
|
<upload bucketName="dist.springframework.org"
|
|
file="${target.release.dir}/${release.buildable.zip}"
|
|
toFile="snapshot/LDAP/spring-ldap-buildable-${release.version}-${tstamp}-${build.number}.zip"
|
|
publicRead="true"/>
|
|
</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>
|
|
|
|
<target name="s3.tasks" depends="retrieve">
|
|
<path id="aws.lib.path">
|
|
<fileset dir="${basedir}/lib/global" includes="*.jar"/>
|
|
</path>
|
|
<taskdef resource="org/springframework/aws/antlib.xml" uri="antlib:org.springframework.aws"
|
|
classpathref="aws.lib.path" />
|
|
</target>
|
|
</project>
|