diff options
author | Stuart Halloway <stu@thinkrelevance.com> | 2010-08-05 17:01:48 -0400 |
---|---|---|
committer | Stuart Halloway <stu@thinkrelevance.com> | 2010-08-05 17:01:48 -0400 |
commit | 626f0cf0795556d78027c21816812c6b9034358e (patch) | |
tree | 12dde9a4038844ff35559377b144519b27685e73 | |
parent | f01cef91b7f3fa4f9c867909d6a68ed4f8d49909 (diff) |
deployment hack
-rw-r--r-- | build.xml | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -222,6 +222,28 @@ </sequential> </macrodef> + <macrodef name="remote-deploy"> + <sequential> + <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"/> + <mvn:deploy file="${clojure_jar}"> + <pom file="pom.xml"/> + <attach file="${src_jar}" classifier="sources"/> + <attach file="${slim_jar}" classifier="slim"/> + <remoteRepository url="scp://build.clojure.org/srv/www/releases"> + <authentication username="root" privateKey="${user.home}/.ssh/id_rsa"/> + </remoteRepository> + </mvn:deploy> + </sequential> + </macrodef> + + <target name="remote-stable-build" depends="ci-build" description="Build and deploy to remote stable repository."> + <sequential> + <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"/> + <mvn:install-provider artifactId="wagon-ssh" version="1.0-beta-2"/> + <remote-deploy/> + </sequential> + </target> + <target name="ci-build" depends="clean,all,-setup-maven" description="Continous integration build, installed to local repository."> <mvn:install file="${clojure_jar}"> |