|
|
@@ -1345,60 +1345,6 @@ |
|
|
|
description="--> creates the full Apache Ant distribution"> |
|
|
|
</target> |
|
|
|
|
|
|
|
<!-- |
|
|
|
=================================================================== |
|
|
|
Upload the distribution to cvs.apache.org for final releases |
|
|
|
=================================================================== |
|
|
|
--> |
|
|
|
|
|
|
|
<target name="init-upload" > |
|
|
|
<fail unless="apache.user" message="set a property apache.user with your apache user"/> |
|
|
|
<fail unless="ssh.passphrase" message="set a property with your ssh passphrase"/> |
|
|
|
<fail unless="ssh.keyfile" message="set a property with your ssh keyfile"/> |
|
|
|
<property name="ssh.knownhosts" location="${user.home}/.ssh/known_hosts" /> |
|
|
|
<property name="ssh.host" value="people.apache.org"/> |
|
|
|
<property name="ssh.verbose" value="false"/> |
|
|
|
<property name="ssh.base.directory" value="/www/www.apache.org/dist"/> |
|
|
|
<property name="ssh.dist.directory" value="${ssh.base.directory}/ant"/> |
|
|
|
<property name="ssh.java-repository.directory" value="/www/people.apache.org/repo/m2-ibiblio-rsync-repository/${groupid}"/> |
|
|
|
<echo > |
|
|
|
Uploading Ant version ${project.version} |
|
|
|
to host ${ssh.host} as ${apache.user} |
|
|
|
distribution to ${ssh.dist.directory} |
|
|
|
maven artefacts to ${ssh.java-repository.directory} |
|
|
|
Known hosts = ${ssh.knownhosts} |
|
|
|
</echo> |
|
|
|
</target> |
|
|
|
|
|
|
|
<!-- create the directories if absent--> |
|
|
|
<target name="ssh-mkdirs" |
|
|
|
depends="init-upload"> |
|
|
|
<sshexec username="${apache.user}" host="${ssh.host}" |
|
|
|
keyfile="${ssh.keyfile}" passphrase="${ssh.passphrase}" |
|
|
|
knownhosts="${ssh.knownhosts}" |
|
|
|
command="mkdir -p ${ssh.dist.directory}" /> |
|
|
|
</target> |
|
|
|
|
|
|
|
<target name="upload" description="--> uploads the distribution" |
|
|
|
depends="init-upload,ssh-mkdirs"> |
|
|
|
<scp todir="${apache.user}@${ssh.host}:${ssh.dist.directory}" |
|
|
|
keyfile="${ssh.keyfile}" passphrase="${ssh.passphrase}" |
|
|
|
knownhosts="${ssh.knownhosts}" |
|
|
|
verbose="${ssh.verbose}" > |
|
|
|
<fileset dir="${dist.base}"> |
|
|
|
<include name="**/*${project.version}*"/> |
|
|
|
</fileset> |
|
|
|
</scp> |
|
|
|
<scp todir="${apache.user}@${ssh.host}:${ssh.java-repository.directory}" |
|
|
|
keyfile="${ssh.keyfile}" passphrase="${ssh.passphrase}" |
|
|
|
knownhosts="${ssh.knownhosts}" |
|
|
|
verbose="${ssh.verbose}"> |
|
|
|
<fileset dir="java-repository/${groupid}"> |
|
|
|
<include name="**/*${project.version}*"/> |
|
|
|
</fileset> |
|
|
|
</scp> |
|
|
|
</target> |
|
|
|
|
|
|
|
<!-- |
|
|
|
=================================================================== |
|
|
|
Cleans up build and distribution directories |
|
|
|