File: publish-documentation.xml

package info (click to toggle)
libspring-java 3.0.6.RELEASE-6%2Bdeb7u3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 50,504 kB
  • sloc: java: 325,411; xml: 67,956; sql: 176; makefile: 40; ruby: 33; sh: 6
file content (48 lines) | stat: -rw-r--r-- 1,748 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<project name="publish-documentation">

<!-- Main targets -->
	<target name="publish-documentation" depends="publish-documentation.init">
		<sshexec host="spring02.managed.contegix.com" 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="spring02.managed.contegix.com" username="${username}" keyfile="${key.file}" passphrase="${passphrase}"
				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"/>
	</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>