configure.xml
Home
/
testsuite /
integration-arquillian /
servers /
auth-server /
jboss /
common /
ant /
configure.xml
<project>
<target name="check-configuration-state">
<available property="crossdc-configured" file="${project.build.directory}/crossdc-configured"/>
<echo>crossdc-configured: ${crossdc-configured}</echo>
</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>
</macrodef>
<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>
</project>