48 lines
1.8 KiB
XML
48 lines
1.8 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
=======================================================================
|
|
Build file containing targets for continuously integrating build
|
|
=======================================================================
|
|
-->
|
|
<project name="build-spring-webflow-continuous" default="upload" xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
|
|
xmlns:aws="antlib:org.springframework.aws">
|
|
|
|
<import file="${basedir}/build.xml"/>
|
|
|
|
<!-- targets for uploading binaries, creating snapshots, et cetera -->
|
|
<target name="upload" depends="upload-s3"/>
|
|
|
|
<target name="upload-s3" depends="init, 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="static.springframework.org"
|
|
file="${target.release.dir}/${release.zip}"
|
|
toFile="SWF/spring-webflow-${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">
|
|
<ivy:configure file="${common.build.dir}/ivyconf.xml" />
|
|
<property name="main.build.configs" value="global,buildtime,test" />
|
|
<ivy:resolve file="${basedir}/ivy.xml" conf="${main.build.configs}" />
|
|
<ivy:retrieve pattern="${ivy.retrieve.pattern}" conf="${main.build.configs}" />
|
|
<path id="aws.lib.path">
|
|
<fileset dir="${basedir}/lib" includes="*.jar"/>
|
|
</path>
|
|
<taskdef resource="org/springframework/aws/antlib.xml" uri="antlib:org.springframework.aws"
|
|
classpathref="aws.lib.path" />
|
|
</target>
|
|
|
|
</project>
|