cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r189965 - in /cocoon/trunk: build.properties tools/src/blocks-build.xsl tools/targets/test-build.xml
Date Fri, 10 Jun 2005 14:24:59 GMT
Author: bdelacretaz
Date: Fri Jun 10 07:24:59 2005
New Revision: 189965

URL: http://svn.apache.org/viewcvs?rev=189965&view=rev
Log:
optionally enable remote debugging for junit-tests target

Modified:
    cocoon/trunk/build.properties
    cocoon/trunk/tools/src/blocks-build.xsl
    cocoon/trunk/tools/targets/test-build.xml

Modified: cocoon/trunk/build.properties
URL: http://svn.apache.org/viewcvs/cocoon/trunk/build.properties?rev=189965&r1=189964&r2=189965&view=diff
==============================================================================
--- cocoon/trunk/build.properties (original)
+++ cocoon/trunk/build.properties Fri Jun 10 07:24:59 2005
@@ -76,10 +76,17 @@
 #junit.testcase=org.apache.cocoon.util.test.NetUtilsTestCase
 junit.test.loglevel=1
 
+# Optionally enable remote debugging when running the JUnit tests.
+# Uncomment one of the following lines only, the property must be present even if empty.
+# Note that setting suspend=y might cause the JVM to stop several times when running the
+# tests, as the build forks a new JVM at several points.
+# This is most useful together with the junit.test.include.* properties below
+junit.test.jvmargs=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
+#junit.test.jvmargs=
+
 # Define which JUnit tests to run - useful to run a subset of tests
 junit.test.include.1=**/*TestCase.class
 junit.test.include.2=**/*Test.class
-
 
 # ---- IDE ---------------------------------------------------------------------
 

Modified: cocoon/trunk/tools/src/blocks-build.xsl
URL: http://svn.apache.org/viewcvs/cocoon/trunk/tools/src/blocks-build.xsl?rev=189965&r1=189964&r2=189965&view=diff
==============================================================================
--- cocoon/trunk/tools/src/blocks-build.xsl (original)
+++ cocoon/trunk/tools/src/blocks-build.xsl Fri Jun 10 07:24:59 2005
@@ -404,6 +404,7 @@
               <junit printsummary="yes" fork="yes" failureproperty="junit.test.failed">
                 <jvmarg value="-Djava.endorsed.dirs=lib/endorsed"/>
                 <jvmarg value="-Djunit.test.loglevel=${{junit.test.loglevel}}"/>
+                <jvmarg line="${{junit.test.jvmargs}}"/>
                 <classpath>
                   <path refid="@{{name}}.classpath"/>
                   <path refid="test.classpath"/>

Modified: cocoon/trunk/tools/targets/test-build.xml
URL: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/test-build.xml?rev=189965&r1=189964&r2=189965&view=diff
==============================================================================
--- cocoon/trunk/tools/targets/test-build.xml (original)
+++ cocoon/trunk/tools/targets/test-build.xml Fri Jun 10 07:24:59 2005
@@ -42,6 +42,7 @@
     <junit printsummary="yes" fork="yes" failureproperty="junit.test.failed">
       <jvmarg value="-Djava.endorsed.dirs=lib/endorsed"/>
       <jvmarg value="-Djunit.test.loglevel=${junit.test.loglevel}"/>
+      <jvmarg line="${junit.test.jvmargs}"/>
       <classpath>
         <path refid="test.classpath"/>
       </classpath>



Mime
View raw message