Skip to content

Commit

Permalink
Update wildfly-jar, allow remote debug to suspend
Browse files Browse the repository at this point in the history
  • Loading branch information
kifj committed Apr 30, 2024
1 parent a0f8462 commit a178990
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 2 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1012,8 +1012,6 @@
<profile>
<id>wildfly-jar</id>
<properties>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<jkube.generator.name>registry.x1/j7beck/x1-wildfly-jar-stomp-test:%v</jkube.generator.name>
<jkube.generator.registry>registry.x1</jkube.generator.registry>
</properties>
Expand All @@ -1023,7 +1021,7 @@
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-jar-maven-plugin</artifactId>
<version>10.0.0.Final</version>
<version>11.0.1.Final</version>
<configuration>
<feature-packs>
<feature-pack>
Expand All @@ -1032,7 +1030,7 @@
<feature-pack>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-datasources-galleon-pack</artifactId>
<version>7.0.0.Final</version>
<version>8.0.0.Final</version>
</feature-pack>
</feature-packs>
<layers>
Expand Down
6 changes: 4 additions & 2 deletions src/test/java/x1/arquillian/WildflyContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ public WildflyContainer withConfigurationDirectory(String directory) {

public WildflyContainer withRemoteDebug() {
if (Boolean.getBoolean("arquillian.remote.debug")) {
LOGGER.info("Enable remote debugging on port {}", DEBUG_PORT);
var suspend = Boolean.getBoolean("arquillian.remote.debug.suspend") ? "y" : "n";
LOGGER.info("Enable remote debugging on port {} with suspend={}", DEBUG_PORT, suspend);
addFixedExposedPort(DEBUG_PORT, DEBUG_PORT);
withEnv("JAVA_OPTS",
"-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -XX:+UseG1GC -XX:+UseStringDeduplication -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=*:8787,server=y,suspend=n");
"-server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -XX:+UseG1GC -XX:+UseStringDeduplication -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=*:"
+ DEBUG_PORT + ",server=y,suspend=" + suspend);
}
return this;
}
Expand Down

0 comments on commit a178990

Please sign in to comment.