Is it possible in my Ant recipe to dynamically deploy to destinations with different paths in JBoss ON?
Issue
- Is it possible in my Ant recipe to dynamically deploy to destinations with different paths?
So if the base dir=
%JBOSS_HOME%\server\
Let's say I have 3 EAP resources hosting the same application on 3 different servers, located here
Server1: %JBOSS_HOME%\server\app01
Server2: %JBOSS_HOME%\server\app02
Server3: %JBOSS_HOME%\server\app03
- If I'm trying to deploy an EAR to baseDir\app##\deploy, would it be possible to dynamically do that? Possibly with conditions like below? Or does the app need to be deployed to the same paths on all servers?
If rhq.system.hostname = Server1
<rhq:file name="app.ear" destinationFile="\app01\deploy" replace="true"/>
If rhq.system.hostname = Server2
<rhq:file name="app.ear" destinationFile="\app02\deploy" replace="true"/>
If rhq.system.hostname = Server3
<rhq:file name="app.ear" destinationFile="\app03\deploy" replace="true"/>
Environment
- Red Hat JBoss Operations Network (ON) 3.1.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.