File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 25
25
<property file =" ${ basedir } /../build.properties" />
26
26
<import file =" ${ basedir } /package-top-level.xml" />
27
27
<import file =" ${ basedir } /publish-top-level.xml" />
28
+ <import file =" ${ basedir } /publish-documentation.xml" />
28
29
<import file =" ${ basedir } /../spring-build/multi-bundle/default.xml" />
29
30
30
31
<target name =" precommit" depends =" clean,clean-integration,test" />
Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments