| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ****************************************************************************** |
| * Copyright (c) 2008, 2010 VMware Inc. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * VMware Inc. - initial contribution |
| ****************************************************************************** |
| --> |
| <project name="publish-multi-bundle" xmlns:ivy="antlib:org.apache.ivy.ant" |
| xmlns:aws="antlib:org.springframework.build.aws"> |
| |
| <import file="common.xml"/> |
| |
| <!-- Main targets --> |
| <target name="publish" |
| description="Publishes all artifacts to remote repositories"> |
| <all-bundles target="publish"/> |
| </target> |
| |
| <target name="publish-eclipse" |
| description="Publishes all artifacts to remote repositories"> |
| <all-bundles target="publish-eclipse"/> |
| </target> |
| |
| <target name="publish-ivy-zodiac" |
| description="Publishes all ivy artifacts to remote repositories"> |
| <all-bundles target="publish-ivy-zodiac"/> |
| </target> |
| |
| <target name="publish-ivy-eclipse" |
| description="Publishes all ivy artifacts to remote repositories"> |
| <all-bundles target="publish-ivy-eclipse"/> |
| </target> |
| |
| <target name="publish-maven" |
| description="Publishes all maven artifacts to remote repositories"> |
| <all-bundles target="publish-maven"/> |
| </target> |
| |
| <target name="install-maven"> |
| <all-bundles target="install-maven"/> |
| </target> |
| |
| <target name="publish-package-amazon" depends="aws.init"> |
| <fail message="The 'project.name' property must be set on this project."> |
| <condition> |
| <not> |
| <isset property="project.name"/> |
| </not> |
| </condition> |
| </fail> |
| <checksum file="${package.output.file}" algorithm="sha1"/> |
| <aws:s3 accessKey="${accessKey}" secretKey="${secretKey}"> |
| <upload bucketName="${zodiac.basename}" file="${package.output.file}" toFile="zips/${adjusted.release.type}/${project.key}/${bundle.version}/${package.file.name}" publicRead="true"> |
| <metadata name="project.name" value="${project.name}"/> |
| <metadata name="release.type" value="${release.type}"/> |
| <metadata name="bundle.version" value="${bundle.version}"/> |
| <metadata name="package.file.name" value="${package.file.name}"/> |
| </upload> |
| <upload bucketName="${zodiac.basename}" file="${package.output.file}.sha1" |
| toFile="zips/${adjusted.release.type}/${project.key}/${bundle.version}/${package.file.name}.sha1" publicRead="true"> |
| </upload> |
| </aws:s3> |
| </target> |
| |
| <target name="publish-package-eclipse-build"> |
| <fail message="The 'project.name' property must be set on this project."> |
| <condition> |
| <not> |
| <isset property="project.name"/> |
| </not> |
| </condition> |
| </fail> |
| <checksum file="${package.output.file}" algorithm="sha1"/> |
| <sshexec host="build.eclipse.org" |
| username="${eclipse.buildId}" |
| keyfile="${eclipse.build.key.file}" |
| passphrase="${passphrase}" |
| command="mkdir -pv /opt/public/rt/virgo/zips/${adjusted.release.type}/${project.key}/${bundle.version}"/> |
| <scp localFile="${package.output.file}" |
| todir="${eclipse.buildId}@build.eclipse.org:/opt/public/rt/virgo/zips/${adjusted.release.type}/${project.key}/${bundle.version}" |
| keyfile="${eclipse.build.key.file}" |
| passphrase="${passphrase}" /> |
| <scp localFile="${package.output.file}.sha1" |
| todir="${eclipse.buildId}@build.eclipse.org:/opt/public/rt/virgo/zips/${adjusted.release.type}/${project.key}/${bundle.version}" |
| keyfile="${eclipse.build.key.file}" |
| passphrase="${passphrase}" /> |
| </target> |
| |
| <target name="publish-package-eclipse-download"> |
| <fail message="The 'project.name' property must be set on this project."> |
| <condition> |
| <not> |
| <isset property="project.name"/> |
| </not> |
| </condition> |
| </fail> |
| <checksum file="${package.output.file}" algorithm="sha1"/> |
| <sshexec host="download1.eclipse.org" |
| username="${committerId}" |
| keyfile="${key.file}" |
| passphrase="${passphrase}" |
| command="mkdir -pv /home/data/httpd/download.eclipse.org/virgo/${adjusted.release.type}/${project.key}/${bundle.version}"/> |
| <scp localFile="${package.output.file}" |
| todir="${committerId}@download1.eclipse.org:/home/data/httpd/download.eclipse.org/virgo/${adjusted.release.type}/${project.key}/${bundle.version}" |
| keyfile="${key.file}" |
| passphrase="${passphrase}" /> |
| <scp localFile="${package.output.file}.sha1" |
| todir="${committerId}@download1.eclipse.org:/home/data/httpd/download.eclipse.org/virgo/${adjusted.release.type}/${project.key}/${bundle.version}" |
| keyfile="${key.file}" |
| passphrase="${passphrase}" /> |
| </target> |
| |
| <!-- Other targets --> |
| <target name="aws.init" depends="ivy.init"> |
| <ivy:cachepath resolveId="spring.aws.ant.classpath" pathid="spring.aws.ant.classpath" |
| organisation="org.springframework.build" module="org.springframework.build.aws.ant" |
| revision="${org.springframework.build.aws.ant.version}" conf="runtime" type="jar" inline="true" |
| log="download-only"/> |
| <taskdef resource="org/springframework/build/aws/ant/antlib.xml" uri="antlib:org.springframework.build.aws" |
| classpathref="spring.aws.ant.classpath" /> |
| </target> |
| |
| </project> |