configure.xml
Home
/
testsuite /
integration-arquillian /
servers /
wildfly-balancer /
src /
main /
scripts /
ant /
configure.xml
<project>
<target name="check-configuration-state">
<available property="wildfly-modcluster-configured" file="${project.build.directory}/wildfly-modcluster-configured"/>
<echo>wildfly-modcluster-configured: ${wildfly-modcluster-configured}</echo>
</target>
<target name="wildfly-modcluster" unless="wildfly-modcluster-configured" depends="check-configuration-state">
<chmod perm="ug+x">
<fileset dir="${wildfly.balancer.home}/bin">
<include name="*.sh"/>
</fileset>
</chmod>
<exec executable="./${jboss.cli.executable}" dir="${wildfly.balancer.home}/bin" failonerror="true">
<arg value="--file=mod-cluster-balancer.cli"/>
</exec>
<exec executable="./${jboss.cli.executable}" dir="${wildfly.balancer.home}/bin" failonerror="true">
<arg value="--file=undertow.cli"/>
</exec>
<exec executable="./${jboss.cli.executable}" dir="${wildfly.balancer.home}/bin" failonerror="true">
<arg value="--file=io-worker-threads.cli"/>
</exec>
<delete dir="${wildfly.balancer.home}/standalone/configuration/standalone_xml_history"/>
<delete dir="${wildfly.balancer.home}/standalone/log"/>
<delete dir="${wildfly.balancer.home}/standalone/data"/>
<delete dir="${wildfly.balancer.home}/standalone/tmp"/>
<touch file="${project.build.directory}/wildfly-modcluster-configured"/>
</target>
</project>