keycloak-scim/testsuite/integration-arquillian/servers/auth-server/jboss/common/ant/configure.xml

48 lines
2 KiB
XML

<project>
<target name="check-configuration-state">
<available property="crossdc-configured" file="${project.build.directory}/crossdc-configured"/>
<available property="cluster-configured" file="${project.build.directory}/cluster-configured"/>
<echo>crossdc-configured: ${crossdc-configured}</echo>
<echo>cluster-configured: ${cluster-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>
<!-- 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>
</project>