|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project name="publish-documentation">
|
|
|
|
|
|
|
|
<!-- Main targets -->
|
|
|
|
<target name="publish-documentation" depends="publish-documentation.init">
|
|
|
|
<sshexec host="static.springframework.org" username="${username}" keyfile="${key.file}" passphrase="${passphrase}"
|
|
|
|
command="rm -rf /opt/www/domains/springframework.org/www/htdocs/spring/docs/${bundle.version}"/>
|
|
|
|
<sshexec host="static.springframework.org" username="${username}" keyfile="${key.file}" passphrase="${passphrase}"
|
|
|
|
command="mkdir /opt/www/domains/springframework.org/www/htdocs/spring/docs/${bundle.version}"/>
|
|
|
|
|
|
|
|
<scp remoteToDir="${username}@spring02.managed.contegix.com:/opt/www/domains/springframework.org/www/htdocs/spring/docs/${bundle.version}"
|
|
|
|
keyfile="${key.file}" passphrase="${passphrase}" sftp="true" verbose="true">
|
|
|
|
<fileset dir="${package.output.dir}">
|
|
|
|
<include name="changelog.txt" />
|
|
|
|
<include name="license.txt" />
|
|
|
|
<include name="readme.txt" />
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="${package.docs.dir}" />
|
|
|
|
</scp>
|
|
|
|
|
|
|
|
<sshexec host="static.springframework.org" username="${username}" keyfile="${key.file}" passphrase="${passphrase}"
|
|
|
|
command="rm -f /opt/www/domains/springframework.org/www/htdocs/spring/docs/3.1.x ; ln -s /opt/www/domains/springframework.org/www/htdocs/spring/docs/${bundle.version} /opt/www/domains/springframework.org/www/htdocs/spring/docs/3.1.x"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Other targets -->
|
|
|
|
<target name="publish-documentation.init">
|
|
|
|
<fail message="The 'username' property must be set">
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<isset property="username"/>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
|
|
|
<fail message="The 'key.file' property must be set">
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<isset property="key.file"/>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
|
|
|
<fail message="The 'passphrase' property must be set">
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<isset property="passphrase"/>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|