Skip to content

Commit

Permalink
BUILD SCRIPT ONLY: Debug arguments for the different servers
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjenkinson committed Dec 3, 2024
1 parent 8f55c9e commit 65aae17
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion coordinator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
<profile>
<id>codeCoverage</id>
<properties>
<server.jvm.args>${jvm.args.other} ${jvm.args.memory} ${jvm.args.debug} ${jvm.args.jacoco} ${jvm.args.modular}</server.jvm.args>
<server.jvm.args>${jvm.args.other} ${jvm.args.memory} ${jvm.args.jacoco} ${jvm.args.modular}</server.jvm.args>
</properties>
</profile>
<profile>
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
-Dorg.jboss.byteman.transform.all
-javaagent:${project.build.directory}/lib/byteman.jar=listener:true</jvm.args.byteman>
<jvm.args.debug></jvm.args.debug>
<lra.coordinator.debug.params></lra.coordinator.debug.params>

<!-- IP stack configs. -->
<jvm.args.ip>-Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false</jvm.args.ip>
Expand All @@ -84,7 +85,7 @@

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<server.jvm.args>${jvm.args.other} ${jvm.args.memory} ${jvm.args.debug} ${jvm.args.modular}</server.jvm.args>
<server.jvm.args>${jvm.args.other} ${jvm.args.memory} ${jvm.args.modular}</server.jvm.args>
<skipITs>true</skipITs>
<skipMavenDeployMojo>false</skipMavenDeployMojo>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
Expand Down
2 changes: 1 addition & 1 deletion test/basic/src/test/resources/arquillian-wildfly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<container qualifier="${arquillian.lra.participant.container.qualifier}" mode="suite" default="true">
<configuration>
<!-- -Djboss.socket.binding.port-offset=100 shifts ports in Wildfly. This is used to avoid overlapping between the two instances of Wildfly-->
<property name="javaVmArguments">${server.jvm.args} -Dlra.coordinator.url=${lra.coordinator.url} -Djboss.socket.binding.port-offset=100</property>
<property name="javaVmArguments">${server.jvm.args} ${lra.coordinator.debug.params} -Dlra.coordinator.url=${lra.coordinator.url} -Djboss.socket.binding.port-offset=100</property>
<property name="managementAddress">${test.application.host}</property>
<property name="managementPort">10090</property>
<property name="startupTimeoutInSeconds">${server.startup.timeout:60}</property>
Expand Down
4 changes: 2 additions & 2 deletions test/crash/src/test/resources/arquillian-wildfly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<group qualifier="${arquillian.group.qualifier}" default="true">
<container qualifier="${arquillian.lra.coordinator.container.qualifier}" mode="manual">
<configuration>
<property name="javaVmArguments">${server.jvm.args} -DObjectStoreEnvironmentBean.objectStoreDir=${project.build.directory}/wfly_lra_objectstore -DObjectStoreEnvironmentBean.communicationStore.objectStoreDir=${project.build.directory}/wfly_lra_objectstore</property>
<property name="javaVmArguments">${server.jvm.args} ${lra.coordinator.debug.params} -DObjectStoreEnvironmentBean.objectStoreDir=${project.build.directory}/wfly_lra_objectstore -DObjectStoreEnvironmentBean.communicationStore.objectStoreDir=${project.build.directory}/wfly_lra_objectstore</property>
<property name="managementAddress">${test.application.host}</property> <!-- default management port is 9990 -->
<property name="startupTimeoutInSeconds">${server.startup.timeout:60}</property>
<property name="serverConfig">${lra.coordinator.xml.filename}</property>
Expand All @@ -21,7 +21,7 @@
<container qualifier="${arquillian.lra.participant.container.qualifier}" mode="manual" default="true">
<configuration>
<!-- -Djboss.socket.binding.port-offset=100 shifts ports in Wildfly. This is used to avoid overlapping between the two instances of Wildfly-->
<property name="javaVmArguments">${server.jvm.args} -Dlra.coordinator.url=${lra.coordinator.url} -Djboss.socket.binding.port-offset=100</property>
<property name="javaVmArguments">${server.jvm.args} ${jvm.args.debug} -Dlra.coordinator.url=${lra.coordinator.url} -Djboss.socket.binding.port-offset=100</property>
<property name="managementAddress">${test.application.host}</property>
<property name="managementPort">10090</property>
<property name="startupTimeoutInSeconds">${server.startup.timeout:60}</property>
Expand Down
4 changes: 3 additions & 1 deletion test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
<configuration>
<redirectTestOutputToFile>${test.logs.to.file}</redirectTestOutputToFile>
<systemPropertyVariables combine="merge">
<jvm.args.debug>${jvm.args.debug}</jvm.args.debug>
<lra.coordinator.debug.params>${lra.coordinator.debug.params}</lra.coordinator.debug.params>
<!-- failsafe test startup logging configuration-->
<java.util.logging.config.file>src/test/resources/logging.properties</java.util.logging.config.file>
<!-- host and port where to find the test application -->
Expand Down Expand Up @@ -336,7 +338,7 @@
<profile>
<id>codeCoverage</id>
<properties>
<server.jvm.args>${jvm.args.other} ${jvm.args.memory} ${jvm.args.debug} ${jvm.args.jacoco} ${jvm.args.modular}</server.jvm.args>
<server.jvm.args>${jvm.args.other} ${jvm.args.memory} ${jvm.args.jacoco} ${jvm.args.modular}</server.jvm.args>
</properties>
</profile>
<profile>
Expand Down
2 changes: 1 addition & 1 deletion test/tck/src/test/resources/arquillian-wildfly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<container qualifier="${arquillian.lra.participant.container.qualifier}" mode="suite" default="true">
<configuration>
<!-- -Djboss.socket.binding.port-offset=100 shifts ports in Wildfly. This is used to avoid overlapping between the two instances of Wildfly-->
<property name="javaVmArguments">${server.jvm.args} -Dlra.coordinator.url=${lra.coordinator.url} -Djboss.socket.binding.port-offset=100 -Dlra.tck.timeout.factor=${lra.tck.timeout.factor}</property>
<property name="javaVmArguments">${server.jvm.args} ${jvm.args.debug} -Dlra.coordinator.url=${lra.coordinator.url} -Djboss.socket.binding.port-offset=100 -Dlra.tck.timeout.factor=${lra.tck.timeout.factor}</property>
<property name="managementAddress">${test.application.host}</property>
<property name="managementPort">10090</property>
<property name="startupTimeoutInSeconds">${server.startup.timeout:60}</property>
Expand Down

0 comments on commit 65aae17

Please sign in to comment.