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

48 lines
1.9 KiB
XML
Raw Normal View History

<project>
<target name="check-configuration-state">
<available property="modcluster-configured" file="${project.build.directory}/modcluster-configured"/>
<echo>modcluster-configured: ${modcluster-configured}</echo>
<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="modcluster" unless="modcluster-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/modcluster-simple-load-provider.cli"/>
</exec>
<cleanup/>
<touch file="${project.build.directory}/modcluster-configured"/>
</target>
<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>