2018-06-06 02:53:44 +00:00
|
|
|
<project>
|
|
|
|
|
|
|
|
<target name="check-configuration-state">
|
|
|
|
<available property="crossdc-configured" file="${project.build.directory}/crossdc-configured"/>
|
2019-02-18 08:19:39 +00:00
|
|
|
<available property="cluster-configured" file="${project.build.directory}/cluster-configured"/>
|
2018-06-06 02:53:44 +00:00
|
|
|
<echo>crossdc-configured: ${crossdc-configured}</echo>
|
2019-02-18 08:19:39 +00:00
|
|
|
<echo>cluster-configured: ${cluster-configured}</echo>
|
2018-06-06 02:53:44 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<macrodef name="bin-chmod">
|
|
|
|
<sequential>
|
|
|
|
<chmod perm="ug+x">
|
|
|
|
<fileset dir="${auth.server.home}/bin">
|
|
|
|
<include name="*.sh"/>
|
|
|
|
</fileset>
|
|
|
|
</chmod>
|
|
|
|
</sequential>
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
<macrodef name="cleanup">
|
|
|
|
<sequential>
|
|
|
|
<delete dir="${auth.server.home}/standalone/configuration/standalone_xml_history"/>
|
|
|
|
<delete dir="${auth.server.home}/standalone/log"/>
|
|
|
|
<delete dir="${auth.server.home}/standalone/data"/>
|
|
|
|
<delete dir="${auth.server.home}/standalone/tmp"/>
|
|
|
|
</sequential>
|
2018-09-24 08:49:47 +00:00
|
|
|
</macrodef>
|
2018-06-06 02:53:44 +00:00
|
|
|
|
|
|
|
<target name="crossdc" unless="crossdc-configured" depends="check-configuration-state">
|
|
|
|
<bin-chmod/>
|
|
|
|
<exec dir="${auth.server.home}/bin" executable="./${jboss.cli.executable}" failonerror="true">
|
|
|
|
<arg value="--file=${common.resources}/jboss-cli/cross-dc-setup.cli"/>
|
|
|
|
</exec>
|
|
|
|
<cleanup/>
|
|
|
|
<touch file="${project.build.directory}/crossdc-configured"/>
|
|
|
|
</target>
|
|
|
|
|
2019-02-18 08:19:39 +00:00
|
|
|
<!-- TODO: will be better if other subsystems are configured through CLI as well rather than XSL -->
|
|
|
|
<target name="undertow-subsystem-cluster" unless="cluster-configured" depends="check-configuration-state">
|
|
|
|
<bin-chmod/>
|
|
|
|
<exec dir="${auth.server.home}/bin" executable="./${jboss.cli.executable}" failonerror="true">
|
|
|
|
<arg value="--file=${common.resources}/jboss-cli/undertow-subsystem-cluster-setup.cli"/>
|
|
|
|
</exec>
|
|
|
|
<cleanup/>
|
|
|
|
<touch file="${project.build.directory}/cluster-configured"/>
|
|
|
|
</target>
|
|
|
|
|
2018-06-06 02:53:44 +00:00
|
|
|
</project>
|