-
Notifications
You must be signed in to change notification settings - Fork 78
/
build-deploy-pdf.xml
85 lines (77 loc) · 4.9 KB
/
build-deploy-pdf.xml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<project name="deploy-pdf" default="public">
<target name="public">
<property name="userguide.server">software-archive.sync.ro</property>
<property name="userguide.server.user" value="" />
<property name="userguide.server.password" value="" />
<property name="userguide.server.dir">/repository/userguides</property>
<property name="output.dir">pdf-css-html5-public</property>
<property name="major.version" value=""/>
<property name="minor.version" value=""/>
<property name="micro.version" value=""/>
<condition property="userguide.server.credentials"
value="${userguide.server.user}:${userguide.server.password}"
else="${userguide.server.user}">
<isset property="${userguide.server.password}"/>
</condition>
<echo>Username: ${userguide.server.user}</echo>
<echo>Password: ${userguide.server.password}</echo>
<!-- Create directories -->
<sshexec host="${userguide.server}" username="${userguide.server.user}" trust="yes" password="${userguide.server.password}"
failonerror="false" keyfile="${user.home}/.ssh/id_rsa"
command="mkdir -p ${userguide.server.dir}/InstData${major.version}.${minor.version}" />
<sshexec host="${userguide.server}" username="${userguide.server.user}" trust="yes" password="${userguide.server.password}"
failonerror="false" keyfile="${user.home}/.ssh/id_rsa"
command="mkdir -p ${userguide.server.dir}/InstData${major.version}.${minor.version}.${micro.version}" />
<!-- Copy all PDF userguides to InstData${major.version}.${minor.version} directory
Author SA -->
<scp file="${project.build.directory}/output/${output.dir}/author-sa/author-sa.pdf"
remoteTofile="${userguide.server.user}@${userguide.server}:${userguide.server.dir}/InstData${major.version}.${minor.version}/Author-UserManual.pdf"
trust="yes" keyfile="${user.home}/.ssh/id_rsa">
</scp>
<!-- Author Eclipse -->
<scp file="${project.build.directory}/output/${output.dir}/author-eclipse/author-eclipse.pdf"
remoteTofile="${userguide.server.user}@${userguide.server}:${userguide.server.dir}/InstData${major.version}.${minor.version}/AuthorEclipse-UserManual.pdf"
trust="yes" keyfile="${user.home}/.ssh/id_rsa">
</scp>
<!-- Developer SA -->
<scp file="${project.build.directory}/output/${output.dir}/developer-sa/developer-sa.pdf"
remoteTofile="${userguide.server.user}@${userguide.server}:${userguide.server.dir}/InstData${major.version}.${minor.version}/Developer-UserManual.pdf"
trust="yes" keyfile="${user.home}/.ssh/id_rsa">
</scp>
<!-- Developer Eclipse -->
<scp file="${project.build.directory}/output/${output.dir}/developer-eclipse/developer-eclipse.pdf"
remoteTofile="${userguide.server.user}@${userguide.server}:${userguide.server.dir}/InstData${major.version}.${minor.version}/DeveloperEclipse-UserManual.pdf"
trust="yes" keyfile="${user.home}/.ssh/id_rsa">
</scp>
<!-- Editor SA -->
<scp file="${project.build.directory}/output/${output.dir}/editor-sa/editor-sa.pdf"
remoteTofile="${userguide.server.user}@${userguide.server}:${userguide.server.dir}/InstData${major.version}.${minor.version}/Editor-UserManual.pdf"
trust="yes" keyfile="${user.home}/.ssh/id_rsa">
</scp>
<!-- Editor Eclipse -->
<scp file="${project.build.directory}/output/${output.dir}/editor-eclipse/editor-eclipse.pdf"
remoteTofile="${userguide.server.user}@${userguide.server}:${userguide.server.dir}/InstData${major.version}.${minor.version}/EditorEclipse-UserManual.pdf"
trust="yes" keyfile="${user.home}/.ssh/id_rsa">
</scp>
<!-- Chemistry -->
<scp file="${project.build.directory}/output/${output.dir}/chemistry/chemistry.pdf"
remoteTofile="${userguide.server.user}@${userguide.server}:${userguide.server.dir}/InstData${major.version}.${minor.version}/Chemistry-UserManual.pdf"
trust="yes" keyfile="${user.home}/.ssh/id_rsa">
</scp>
<!-- DCPP -->
<scp file="${project.build.directory}/output/${output.dir}/pdf-css/pdf-css.pdf"
remoteTofile="${userguide.server.user}@${userguide.server}:${userguide.server.dir}/InstData${major.version}.${minor.version}/DCPP-UserManual.pdf"
trust="yes" keyfile="${user.home}/.ssh/id_rsa">
</scp>
<!-- WebHelp Responsive -->
<scp file="${project.build.directory}/output/${output.dir}/webhelp-responsive/webhelp-responsive.pdf"
remoteTofile="${userguide.server.user}@${userguide.server}:${userguide.server.dir}/InstData${major.version}.${minor.version}/WebHelpResponsive-UserManual.pdf"
trust="yes" keyfile="${user.home}/.ssh/id_rsa">
</scp>
<!-- JSON Editor -->
<scp file="${project.build.directory}/output/${output.dir}/json/json.pdf"
remoteTofile="${userguide.server.user}@${userguide.server}:${userguide.server.dir}/InstData${major.version}.${minor.version}/JSONEditor-UserManual.pdf"
trust="yes" keyfile="${user.home}/.ssh/id_rsa">
</scp>
</target>
</project>