Allow for debugging the pax exam tests, via -Dpax.vm.options
authorBertrand Delacretaz <bdelacretaz@apache.org>
Tue, 22 Nov 2016 17:34:40 +0000 (17:34 +0000)
committerBertrand Delacretaz <bdelacretaz@apache.org>
Tue, 22 Nov 2016 17:34:40 +0000 (17:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1770862 13f79535-47bb-0310-9956-ffa450edef68

pom.xml
src/test/java/org/apache/sling/installer/it/OsgiInstallerTestBase.java

diff --git a/pom.xml b/pom.xml
index 1d01a7a..de4fe34 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <exam.version>3.0.3</exam.version>
         <url.version>2.4.7</url.version>
         <pax.exam.log.level>INFO</pax.exam.log.level>
+        <pax.vm.options>-Xmx256M -XX:MaxPermSize=256m</pax.vm.options>
         <installer.configuration.version>1.1.3-SNAPSHOT</installer.configuration.version>
+        
+        <argLine>${pax.vm.options}</argLine>
 
         <!-- BundleInstallStressTest parameters -->
         <BundleInstallStressTest.default.bundles.folder>${project.build.directory}/bundle-install-stress-test-bundles</BundleInstallStressTest.default.bundles.folder>
                             <value>${pax.exam.log.level}</value>
                         </property>
                         <property>
+                            <name>pax.exam.debug.port</name>
+                            <value>${pax.exam.debug.port}</value>
+                        </property>
+                        <property>
                             <name>osgi.installer.pom.version</name>
                             <value>${project.version}</value>
                         </property>
index 2d5dd02..ea531ee 100644 (file)
@@ -494,10 +494,6 @@ public class OsgiInstallerTestBase implements FrameworkListener {
 
        // optional debugging
        final String paxDebugLevel = System.getProperty("pax.exam.log.level", "INFO");
-       final String paxDebugPort = System.getProperty("pax.exam.debug.port");
-       if(paxDebugPort != null && paxDebugPort.length() > 0) {
-               vmOpt += " -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=" + paxDebugPort;
-       }
 
        String localRepo = System.getProperty("maven.repo.local", "");