/
manualmode-build.xml
151 lines (126 loc) · 6.42 KB
/
manualmode-build.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2011, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<project>
<!-- import shared ant targets -->
<import file="common-targets.xml" as="common"/>
<target name="build-manual-mode" description="Builds server configurations for manual mode tests">
<!-- Configure all standalone-ha.xml profiles not to be chatty by setting ip_ttl=0 -->
<ts.config-as.configure-multicast-ttl name="wildfly" mcast.ttl="${mcast.ttl}"/>
<ts.config-as.add-interface name="wildfly"
interface="multicast"
inet-address="${node0}"/>
<ts.config-as.change-jgroups-multicast-interface name="wildfly"
interface="multicast"/>
<echo message="Copying and configuring instance jbossas-with-remote-outbound-connection"/>
<copy todir="target/jbossas-with-remote-outbound-connection">
<fileset dir="target/wildfly"/>
</copy>
<echo message="Copying and configuring instance inbound-server"/>
<copy todir="target/inbound-server">
<fileset dir="target/wildfly"/>
</copy>
<echo message="Copying and configuring instance outbound-server"/>
<copy todir="target/outbound-server">
<fileset dir="target/wildfly"/>
</copy>
<echo message="Copying and configuring instance seccontext-server1"/>
<copy todir="target/seccontext-server1">
<fileset dir="target/wildfly"/>
</copy>
<echo message="Copying and configuring instance seccontext-server1-backup"/>
<copy todir="target/seccontext-server1-backup">
<fileset dir="target/wildfly"/>
</copy>
<echo message="Copying and configuring instance seccontext-server2"/>
<copy todir="target/seccontext-server2">
<fileset dir="target/wildfly"/>
</copy>
<echo message="Copying and configuring instance seccontext-server3"/>
<copy todir="target/seccontext-server3">
<fileset dir="target/wildfly"/>
</copy>
<echo message="Copying and configuring instance wildfly-session-digest-node1"/>
<copy todir="target/wildfly-session-digest-node1">
<fileset dir="target/wildfly"/>
</copy>
<echo message="Copying and configuring instance wildfly-session-digest-node2"/>
<copy todir="target/wildfly-session-digest-node2">
<fileset dir="target/wildfly"/>
</copy>
<echo message="Copying and configuring instance jbossas-layered"/>
<copy todir="target/jbossas-layered">
<fileset dir="target/wildfly"/>
</copy>
<copy todir="target/jbossas-layered/modules">
<fileset dir="${jboss.dist}/modules"/>
</copy>
<copy todir="target/wildfly/modules">
<fileset dir="${jboss.dist}/modules"/>
</copy>
<echo message="Copying and configuring instance jbossas-admin-only"/>
<copy todir="target/jbossas-admin-only">
<fileset dir="target/wildfly"/>
</copy>
<echo message="Copying and configuring instance jbossas-parse-marshal"/>
<copy todir="target/jbossas-parse-marshal">
<fileset dir="target/wildfly"/>
</copy>
<copy todir="target/jbossas-parse-marshal/modules">
<fileset dir="${jboss.dist}/modules"/>
</copy>
<echo message="Copying and configuring instances jbossas-dwm-manual-0 and jbossas-dwm-manual-1 ========= "/>
<copy todir="target/jbossas-dwm-manual-0" overwrite="true">
<fileset dir="target/wildfly"/>
</copy>
<copy todir="target/jbossas-dwm-manual-1" overwrite="true">
<fileset dir="target/wildfly"/>
</copy>
<copy todir="target/jbossas-custom" overwrite="true">
<fileset dir="target/wildfly"/>
</copy>
<ts.config-as.change-transport-stack name="jbossas-dwm-manual-0"
stack="tcp"/>
<ts.config-as.change-transport-stack name="jbossas-dwm-manual-1"
stack="tcp"/>
<!-- Connects back to original host (node0) -->
<ts.config-as.add-remote-outbound-connection name="jbossas-with-remote-outbound-connection" node="${node0}"
remotePort="8080" protocol="remote+http" />
<!--<ts.config-as.add-identity-realm name="jbossas-with-remote-outbound-connection" realmName="PasswordRealm"
secret="cGFzc3dvcmQx"/>-->
<ts.config-as.ip-with-multicast name="jbossas-with-remote-outbound-connection"
node="${node1}"
mcast="${mcast}"
/>
<ts.config-as.add-port-offset name="jbossas-with-remote-outbound-connection" offset="100" nativePort="9999" httpPort="9990"/>
<delete dir="target/jbossas-messaging-ha-server1"/>
<echo message="Copying and configuring instance jbossas-messaging-ha-server1"/>
<copy todir="target/jbossas-messaging-ha-server1">
<fileset dir="target/wildfly"/>
</copy>
<delete dir="target/jbossas-messaging-ha-server2"/>
<echo message="Copying and configuring instance jbossas-messaging-ha-server2"/>
<copy todir="target/jbossas-messaging-ha-server2">
<fileset dir="target/wildfly"/>
</copy>
</target>
</project>