Skip to content

Commit 1a2135e

Browse files
committed
Publication is now automatic
1 parent 2965710 commit 1a2135e

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

build-spring-framework/build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<property file="${basedir}/../build.properties"/>
2626
<import file="${basedir}/package-top-level.xml"/>
2727
<import file="${basedir}/publish-top-level.xml"/>
28+
<import file="${basedir}/publish-documentation.xml"/>
2829
<import file="${basedir}/../spring-build/multi-bundle/default.xml"/>
2930

3031
<target name="precommit" depends="clean,clean-integration,test"/>
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project name="publish-documentation">
3+
4+
<!-- Main targets -->
5+
<target name="publish-documentation" depends="publish-documentation.init">
6+
<sshexec host="spring02.managed.contegix.com" username="${username}" keyfile="${key.file}" passphrase="${passphrase}"
7+
command="mkdir /opt/www/domains/springframework.org/www/htdocs/spring/docs/${bundle.version}"/>
8+
9+
<scp remoteToDir="${username}@spring02.managed.contegix.com:/opt/www/domains/springframework.org/www/htdocs/spring/docs/${bundle.version}"
10+
keyfile="${key.file}" passphrase="${passphrase}" sftp="true" verbose="true">
11+
<fileset dir="${package.output.dir}">
12+
<include name="changelog.txt" />
13+
<include name="license.txt" />
14+
<include name="readme.txt" />
15+
</fileset>
16+
<fileset dir="${package.output.dir}/docs" />
17+
</scp>
18+
19+
<sshexec host="spring02.managed.contegix.com" username="${username}" keyfile="${key.file}" passphrase="${passphrase}"
20+
command="rm /opt/www/domains/springframework.org/www/htdocs/spring/docs/3.0.x ; ln -s /opt/www/domains/springframework.org/www/htdocs/spring/docs/${bundle.version} /opt/www/domains/springframework.org/www/htdocs/spring/docs/3.0.x"/>
21+
</target>
22+
23+
<!-- Other targets -->
24+
<target name="publish-documentation.init">
25+
<fail message="The 'username' property must be set">
26+
<condition>
27+
<not>
28+
<isset property="username"/>
29+
</not>
30+
</condition>
31+
</fail>
32+
<fail message="The 'key.file' property must be set">
33+
<condition>
34+
<not>
35+
<isset property="key.file"/>
36+
</not>
37+
</condition>
38+
</fail>
39+
<fail message="The 'passphrase' property must be set">
40+
<condition>
41+
<not>
42+
<isset property="passphrase"/>
43+
</not>
44+
</condition>
45+
</fail>
46+
</target>
47+
48+
</project>

0 commit comments

Comments
 (0)