-
Notifications
You must be signed in to change notification settings - Fork 9
/
TestMigrator.mig.xml
37 lines (30 loc) · 1.4 KB
/
TestMigrator.mig.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
<?xml version="1.0" encoding="UTF-8"?>
<migration>
<migrator name="mail">
<jaxbBean file="TestJaxbBean.groovy"/>
<xmlQuery id="mailServices"
pathMask="${srcServer.dir}/server/${srcServer.profile}/deploy/mail-service.xml"
jaxbBean="TestJaxbBean"
xpath="/server/mbean[@code='org.jboss.mail.MailService']"
subjectLabel="Mail Service config"
/>
<forEach query="mailServices" var="it">
<action type="cli" script="/subsystem=mail/service=foo:add(name=bar,boo=baz)">
<filter>
//! "smtp.nosuchhost.nosuchdomain.com".equals( it.getSmtpHost() )
it.getSmtpHost() != "smtp.nosuchhost.nosuchdomain.com"
</filter>
</action>
</forEach>
<action type="manual">
<warning>MailService beans migration is not yet supported.</warning>
<forEach query="mailServices">
<filter>
//! "smtp.nosuchhost.nosuchdomain.com".equals( it.getSmtpHost() )
it.getSmtpHost() != "smtp.nosuchhost.nosuchdomain.com"
</filter>
<warning> MailService will be skipped - JNDI name: ${it.getJndiName()}, MBean name: ${ms.getMbeanName()}</warning>
</forEach>
</action>
</migrator>
</migration>